mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-09-04 08:30:39 +00:00
add build cli
This commit is contained in:
14
packages/cli/build.js
Normal file
14
packages/cli/build.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import pkg from './package.json' assert { 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,
|
||||
})
|
Reference in New Issue
Block a user