cryptgeon/packages/cli/build.js

15 lines
319 B
JavaScript
Raw Permalink Normal View History

2024-08-23 09:02:30 +00:00
import pkg from './package.json' with { type: 'json' }
2024-08-23 07:59:06 +00:00
import { build } from 'tsup'
const watch = process.argv.slice(2)[0] === '--watch'
await build({
entry: ['src/index.ts', 'src/cli.ts'],
dts: true,
minify: true,
format: ['esm', 'cjs'],
clean: true,
define: { VERSION: `"${pkg.version}"` },
watch,
})