mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-23 08:46:28 +00:00
15 lines
319 B
JavaScript
15 lines
319 B
JavaScript
import pkg from './package.json' with { type: 'json' }
|
|
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,
|
|
})
|