mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2026-09-26 20:41:45 +00:00
16 lines
368 B
JavaScript
16 lines
368 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'],
|
|
dts: true,
|
|
minify: true,
|
|
format: ['esm'],
|
|
target: 'es2022',
|
|
clean: true,
|
|
noExternal: ['@cryptgeon/shared'],
|
|
define: { VERSION: `"${pkg.version}"` },
|
|
watch,
|
|
}) |