implementado tsup
This commit is contained in:
parent
7bddbd5c72
commit
8efeb59716
131 changed files with 2216 additions and 1476 deletions
55
dist-back/tsup/tsup.config.back.cjs
Normal file
55
dist-back/tsup/tsup.config.back.cjs
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var tsup_config_back_exports = {};
|
||||
__export(tsup_config_back_exports, {
|
||||
default: () => tsup_config_back_default,
|
||||
tsup_config_back: () => tsup_config_back
|
||||
});
|
||||
module.exports = __toCommonJS(tsup_config_back_exports);
|
||||
var import_tsup = require("tsup");
|
||||
const tsup_config_back = {
|
||||
entry: ["src/**/*.ts"],
|
||||
// Inclui todos os arquivos TypeScript na pasta src
|
||||
format: "cjs",
|
||||
// Gera módulos CommonJS, padrão para Node.js
|
||||
target: "node20",
|
||||
// Compila para o ambiente Node.js versão 20 (ou sua versão alvo)
|
||||
outDir: "dist-back",
|
||||
// Diretório de saída para os arquivos transpilados
|
||||
clean: true,
|
||||
// Limpa o diretório de saída antes de cada build
|
||||
bundle: false,
|
||||
// ESSENCIAL: Mantém a estrutura de arquivos e pastas original
|
||||
splitting: false,
|
||||
// Desnecessário quando bundle é false
|
||||
dts: false,
|
||||
// RECOMENDADO: Gera arquivos de declaração TypeScript (.d.ts)
|
||||
// legacyOutput e outExtension foram removidos por não serem necessários
|
||||
sourcemap: true,
|
||||
// Recomendado para depuração
|
||||
minify: false,
|
||||
// Geralmente não minificamos o código do backend em produção, mas você pode mudar
|
||||
outExtension: () => ({ js: ".cjs" })
|
||||
};
|
||||
var tsup_config_back_default = (0, import_tsup.defineConfig)(tsup_config_back);
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
tsup_config_back
|
||||
});
|
||||
//# sourceMappingURL=tsup.config.back.cjs.map
|
||||
1
dist-back/tsup/tsup.config.back.cjs.map
Normal file
1
dist-back/tsup/tsup.config.back.cjs.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["../../src/tsup/tsup.config.back.ts"],"sourcesContent":["// tsup.config.ts (Configuração Ajustada para Back-end)\nimport { defineConfig, type Options } from \"tsup\"\n\n// Definimos as opções em uma constante para clareza, como você fez.\n// Exportamos para que possam ser reutilizadas ou inspecionadas.\nexport const tsup_config_back: Options = {\n entry: [\"src/**/*.ts\"], // Inclui todos os arquivos TypeScript na pasta src\n format: \"cjs\", // Gera módulos CommonJS, padrão para Node.js\n target: \"node20\", // Compila para o ambiente Node.js versão 20 (ou sua versão alvo)\n outDir: \"dist-back\", // Diretório de saída para os arquivos transpilados\n clean: true, // Limpa o diretório de saída antes de cada build\n bundle: false, // ESSENCIAL: Mantém a estrutura de arquivos e pastas original\n splitting: false, // Desnecessário quando bundle é false\n dts: false, // RECOMENDADO: Gera arquivos de declaração TypeScript (.d.ts)\n // legacyOutput e outExtension foram removidos por não serem necessários\n sourcemap: true, // Recomendado para depuração\n minify: false, // Geralmente não minificamos o código do backend em produção, mas você pode mudar\n outExtension: () => ({ js: \".cjs\" }),\n}\n\n// Exporta a configuração padrão usando defineConfig\nexport default defineConfig(tsup_config_back)\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAA2C;AAIpC,MAAM,mBAA4B;AAAA,EACvC,OAAO,CAAC,aAAa;AAAA;AAAA,EACrB,QAAQ;AAAA;AAAA,EACR,QAAQ;AAAA;AAAA,EACR,QAAQ;AAAA;AAAA,EACR,OAAO;AAAA;AAAA,EACP,QAAQ;AAAA;AAAA,EACR,WAAW;AAAA;AAAA,EACX,KAAK;AAAA;AAAA;AAAA,EAEL,WAAW;AAAA;AAAA,EACX,QAAQ;AAAA;AAAA,EACR,cAAc,OAAO,EAAE,IAAI,OAAO;AACpC;AAGA,IAAO,+BAAQ,0BAAa,gBAAgB;","names":[]}
|
||||
28
dist-back/tsup/tsup.config.cjs
Normal file
28
dist-back/tsup/tsup.config.cjs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var tsup_config_exports = {};
|
||||
__export(tsup_config_exports, {
|
||||
default: () => tsup_config_default
|
||||
});
|
||||
module.exports = __toCommonJS(tsup_config_exports);
|
||||
var import_tsup = require("tsup");
|
||||
var import_tsup_config = require("./tsup.config.back");
|
||||
var import_tsup_config2 = require("./tsup.config.front");
|
||||
var tsup_config_default = (0, import_tsup.defineConfig)([import_tsup_config.tsup_config_back, import_tsup_config2.tsup_config_front]);
|
||||
//# sourceMappingURL=tsup.config.cjs.map
|
||||
1
dist-back/tsup/tsup.config.cjs.map
Normal file
1
dist-back/tsup/tsup.config.cjs.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["../../src/tsup/tsup.config.ts"],"sourcesContent":["// tsup.config.ts (Configuração Ajustada para Back-end)\nimport { defineConfig, type Options } from \"tsup\"\nimport { tsup_config_back } from \"./tsup.config.back\"\nimport { tsup_config_front } from \"./tsup.config.front\"\n\n// Exporta a configuração padrão usando defineConfig\nexport default defineConfig([tsup_config_back, tsup_config_front])\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAA2C;AAC3C,yBAAiC;AACjC,IAAAA,sBAAkC;AAGlC,IAAO,0BAAQ,0BAAa,CAAC,qCAAkB,qCAAiB,CAAC;","names":["import_tsup_config"]}
|
||||
55
dist-back/tsup/tsup.config.front.cjs
Normal file
55
dist-back/tsup/tsup.config.front.cjs
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var tsup_config_front_exports = {};
|
||||
__export(tsup_config_front_exports, {
|
||||
default: () => tsup_config_front_default,
|
||||
tsup_config_front: () => tsup_config_front
|
||||
});
|
||||
module.exports = __toCommonJS(tsup_config_front_exports);
|
||||
var import_tsup = require("tsup");
|
||||
const tsup_config_front = {
|
||||
entry: ["src/**/*.ts", "src/**/*.tsx"],
|
||||
// Adicionado .tsx para compatibilidade, se aplicável
|
||||
format: "esm",
|
||||
// Gera módulos ES para import/export no navegador
|
||||
target: "es2022",
|
||||
// Ou 'esnext' para os recursos mais recentes
|
||||
outDir: "dist-front",
|
||||
// Diretório de saída para os arquivos transpilados
|
||||
clean: true,
|
||||
// Limpa o diretório de saída antes de cada build
|
||||
bundle: false,
|
||||
// ESSENCIAL: Mantém a estrutura de arquivos e pastas original
|
||||
splitting: false,
|
||||
// Desnecessário quando bundle é false
|
||||
dts: false,
|
||||
// Não gera arquivos de declaração TypeScript (.d.ts) para uso em front-end JS
|
||||
// legacyOutput e outExtension foram removidos por não serem necessários
|
||||
sourcemap: true,
|
||||
// Recomendado para depuração no navegador
|
||||
minify: true,
|
||||
// Recomendado para builds de produção
|
||||
outExtension: () => ({ js: ".mjs" })
|
||||
};
|
||||
var tsup_config_front_default = (0, import_tsup.defineConfig)(tsup_config_front);
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
tsup_config_front
|
||||
});
|
||||
//# sourceMappingURL=tsup.config.front.cjs.map
|
||||
1
dist-back/tsup/tsup.config.front.cjs.map
Normal file
1
dist-back/tsup/tsup.config.front.cjs.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["../../src/tsup/tsup.config.front.ts"],"sourcesContent":["// tsup.config.ts (Configuração Ajustada para Back-end)\nimport { defineConfig, type Options } from \"tsup\"\n\n// Definimos as opções em uma constante para clareza, como você fez.\n// Exportamos para que possam ser reutilizadas ou inspecionadas.\nexport const tsup_config_front: Options = {\n entry: [\"src/**/*.ts\", \"src/**/*.tsx\"], // Adicionado .tsx para compatibilidade, se aplicável\n format: \"esm\", // Gera módulos ES para import/export no navegador\n target: \"es2022\", // Ou 'esnext' para os recursos mais recentes\n outDir: \"dist-front\", // Diretório de saída para os arquivos transpilados\n clean: true, // Limpa o diretório de saída antes de cada build\n bundle: false, // ESSENCIAL: Mantém a estrutura de arquivos e pastas original\n splitting: false, // Desnecessário quando bundle é false\n dts: false, // Não gera arquivos de declaração TypeScript (.d.ts) para uso em front-end JS\n // legacyOutput e outExtension foram removidos por não serem necessários\n sourcemap: true, // Recomendado para depuração no navegador\n minify: true, // Recomendado para builds de produção\n outExtension: () => ({ js: \".mjs\" }),\n}\n\n// Exporta a configuração padrão usando defineConfig\nexport default defineConfig(tsup_config_front)\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAA2C;AAIpC,MAAM,oBAA6B;AAAA,EACxC,OAAO,CAAC,eAAe,cAAc;AAAA;AAAA,EACrC,QAAQ;AAAA;AAAA,EACR,QAAQ;AAAA;AAAA,EACR,QAAQ;AAAA;AAAA,EACR,OAAO;AAAA;AAAA,EACP,QAAQ;AAAA;AAAA,EACR,WAAW;AAAA;AAAA,EACX,KAAK;AAAA;AAAA;AAAA,EAEL,WAAW;AAAA;AAAA,EACX,QAAQ;AAAA;AAAA,EACR,cAAc,OAAO,EAAE,IAAI,OAAO;AACpC;AAGA,IAAO,gCAAQ,0BAAa,iBAAiB;","names":[]}
|
||||
Loading…
Add table
Add a link
Reference in a new issue