"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 = { /** Não mecher aqui */ entry: ["src/**/*.ts", "src/**/*.tsx"], // Adicionado .tsx para compatibilidade, se aplicável 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: false, minify: false, // Geralmente não minificamos o código do backend em produção, mas você pode mudar outExtension: () => ({ js: ".js" }) }; 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 });