mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 18:49:48 +00:00
build(cli): bundle hono and ulid directly into the CLI script for zero dependency distribution
This commit is contained in:
@@ -548,7 +548,7 @@ async function buildCliPackage() {
|
||||
outdir: binOutDir,
|
||||
minify: true,
|
||||
naming: 'shumai-cli.js',
|
||||
external: ['hono', 'ulid'],
|
||||
external: [],
|
||||
define: {
|
||||
'process.env.NODE_ENV': JSON.stringify('production'),
|
||||
},
|
||||
@@ -580,10 +580,6 @@ async function buildCliPackage() {
|
||||
'shumai-cli': './bin/shumai-cli.js',
|
||||
},
|
||||
files: ['bin'],
|
||||
dependencies: {
|
||||
hono: '4.12.23',
|
||||
ulid: '^3.0.2',
|
||||
},
|
||||
repository: rootPackageJson.repository,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user