implementado tsup

This commit is contained in:
Luiz Silva 2025-07-17 08:54:56 -03:00
parent 7bddbd5c72
commit 8efeb59716
131 changed files with 2216 additions and 1476 deletions

View 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