2026-07-15 18:17:38 +08:00
|
|
|
import { defineConfig } from 'tsdown'
|
|
|
|
|
|
|
|
|
|
/** Bundle the library and create bin, then mirror package-owned terminal templates. */
|
|
|
|
|
export default defineConfig({
|
2026-07-19 22:13:50 +08:00
|
|
|
entry: ['lib/types/index.js', 'lib/types/invariant.js', 'lib/types/bin.js'],
|
2026-07-15 18:17:38 +08:00
|
|
|
outDir: 'lib',
|
|
|
|
|
format: ['esm'],
|
|
|
|
|
platform: 'node',
|
|
|
|
|
target: 'es2024',
|
|
|
|
|
fixedExtension: false,
|
|
|
|
|
dts: false,
|
|
|
|
|
clean: false,
|
|
|
|
|
copy: [{ from: 'src/templates/assets/*', to: 'lib/assets' }],
|
|
|
|
|
})
|