mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-11-01 12:54:18 +01: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,
|
|
})
|