mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-11-01 04:44:16 +01:00
16 lines
363 B
JavaScript
16 lines
363 B
JavaScript
import { build } from 'tsup'
|
|
import pkg from './package.json' with { type: 'json' }
|
|
|
|
const watch = process.argv.slice(2)[0] === '--watch'
|
|
|
|
await build({
|
|
entry: ['src/index.ts', 'src/cli.ts', 'src/shared/shared.ts'],
|
|
dts: true,
|
|
minify: true,
|
|
format: ['esm', 'cjs'],
|
|
target: 'es2020',
|
|
clean: true,
|
|
define: { VERSION: `"${pkg.version}"` },
|
|
watch,
|
|
})
|