17 lines
358 B
TypeScript
17 lines
358 B
TypeScript
import { defineConfig } from 'tsdown';
|
|
|
|
export default defineConfig({
|
|
failOnWarn: 'ci-only',
|
|
entry: ['src/cli.ts', 'src/index.ts'],
|
|
format: ['esm', 'cjs'],
|
|
fixedExtension: true,
|
|
outDir: 'dist',
|
|
clean: true,
|
|
sourcemap: true,
|
|
target: 'esnext',
|
|
platform: 'node',
|
|
shims: true,
|
|
dts: {
|
|
resolver: 'tsc'
|
|
}
|
|
});
|