diff --git a/packages/ts-scripts-yarn3/src/actions/package/compile/packageCompileTsup.ts b/packages/ts-scripts-yarn3/src/actions/package/compile/packageCompileTsup.ts index 4f804956..37f30bc7 100644 --- a/packages/ts-scripts-yarn3/src/actions/package/compile/packageCompileTsup.ts +++ b/packages/ts-scripts-yarn3/src/actions/package/compile/packageCompileTsup.ts @@ -22,7 +22,7 @@ const compileFolder = async (folder: string, entryMode: EntryMode = 'single', op silent: true, sourcemap: true, splitting: false, - terserOptions: { format: { comments: false }, output: { comments: false } }, + terserOptions: { format: { comments: false } }, tsconfig: 'tsconfig.json', ...options, }) @@ -76,8 +76,9 @@ export const packageCompileTsup = async (config?: XyTsupConfig) => { outDir: 'dist/node', platform: 'node', skipNodeModulesBundle: true, + sourcemap: true, target: 'node16', - terserOptions: { format: { comments: false }, output: { comments: false } }, + terserOptions: { format: { comments: false } }, ...compile?.tsup?.options, ...(typeof options === 'object' ? options : {}), }, @@ -110,8 +111,9 @@ export const packageCompileTsup = async (config?: XyTsupConfig) => { outExtension: ({ format }) => (format === 'esm' ? { js: '.js' } : { js: '.cjs' }), platform: 'browser', skipNodeModulesBundle: true, + sourcemap: true, target: 'esnext', - terserOptions: { format: { comments: false }, output: { comments: false } }, + terserOptions: { format: { comments: false } }, ...compile?.tsup?.options, ...(typeof options === 'object' ? options : {}), }, @@ -133,8 +135,9 @@ export const packageCompileTsup = async (config?: XyTsupConfig) => { outExtension: ({ format }) => (format === 'esm' ? { js: '.js' } : { js: '.cjs' }), platform: 'browser', skipNodeModulesBundle: true, + sourcemap: true, target: 'esnext', - terserOptions: { format: { comments: false }, output: { comments: false } }, + terserOptions: { format: { comments: false } }, ...compile?.tsup?.options, ...(typeof options === 'object' ? options : {}), }, @@ -169,8 +172,9 @@ export const packageCompileTsup = async (config?: XyTsupConfig) => { outExtension: ({ format }) => (format === 'esm' ? { js: '.js' } : { js: '.cjs' }), platform: 'neutral', skipNodeModulesBundle: true, + sourcemap: true, target: 'esnext', - terserOptions: { format: { comments: false }, output: { comments: false } }, + terserOptions: { format: { comments: false } }, ...compile?.tsup?.options, ...(typeof options === 'object' ? options : {}), }, @@ -192,8 +196,9 @@ export const packageCompileTsup = async (config?: XyTsupConfig) => { outExtension: ({ format }) => (format === 'esm' ? { js: '.js' } : { js: '.cjs' }), platform: 'neutral', skipNodeModulesBundle: true, + sourcemap: true, target: 'esnext', - terserOptions: { format: { comments: false }, output: { comments: false } }, + terserOptions: { format: { comments: false } }, ...compile?.tsup?.options, ...(typeof options === 'object' ? options : {}), },