Browse Source

fix: Update bundle command in package.json to include all files in dist directory

- Modified the "bundle:exe" script to compile all files in the dist directory instead of just jobs, ensuring comprehensive bundling for the executable output.
mono
谢亚昕 2 months ago
parent
commit
0ba614355e
  1. 2
      package.json

2
package.json

@ -12,7 +12,7 @@
"start": "cd dist && cross-env NODE_ENV=production bun run booststap.js", "start": "cd dist && cross-env NODE_ENV=production bun run booststap.js",
"build:all": "cross-env NODE_ENV=production tsup --config tsup.config.ts", "build:all": "cross-env NODE_ENV=production tsup --config tsup.config.ts",
"build": "rimraf dist && bun run build:client && bun run build:all && node scripts/build.js", "build": "rimraf dist && bun run build:client && bun run build:all && node scripts/build.js",
"bundle:exe": "bun build --compile ./dist/booststap.js ./dist/jobs/**/* --minify --outfile ./dist/koa-ssr.exe", "bundle:exe": "bun build --compile ./dist/booststap.js ./dist/**/* --minify --outfile ./dist/koa-ssr.exe",
"build:exe": "bun run build && bun run bundle:exe", "build:exe": "bun run build && bun run bundle:exe",
"tsc:booststap": "tsc packages/booststap/src/server.ts --outDir dist --module es2022 --target es2022 --lib es2022,dom --moduleResolution bundler --esModuleInterop --skipLibCheck --forceConsistentCasingInFileNames --noEmit false --incremental false", "tsc:booststap": "tsc packages/booststap/src/server.ts --outDir dist --module es2022 --target es2022 --lib es2022,dom --moduleResolution bundler --esModuleInterop --skipLibCheck --forceConsistentCasingInFileNames --noEmit false --incremental false",
"tsc:server": "tsc packages/server/src/**/*.ts --outDir dist/server --module es2022 --target es2022 --lib es2022,dom --moduleResolution bundler --esModuleInterop --skipLibCheck --forceConsistentCasingInFileNames --noEmit false --incremental false" "tsc:server": "tsc packages/server/src/**/*.ts --outDir dist/server --module es2022 --target es2022 --lib es2022,dom --moduleResolution bundler --esModuleInterop --skipLibCheck --forceConsistentCasingInFileNames --noEmit false --incremental false"

Loading…
Cancel
Save