File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ const outDir = "./compile";
1010const zip = new AdmZip ( ) ;
1111
1212// 添加文件夹到压缩包
13- zip . addLocalFolder ( inputDir , "" , ( path ) => ! path . startsWith ( "index.js" ) ) ;
13+ zip . addLocalFolder (
14+ inputDir ,
15+ "" ,
16+ ( path ) => ! path . startsWith ( "index.js" ) && ! path . startsWith ( "chunk-" )
17+ ) ;
1418
1519console . log ( "Compiling..." ) ;
1620
Original file line number Diff line number Diff line change 11{
22 "name" : " docbase" ,
3- "version" : " 0.4.43 " ,
3+ "version" : " 0.4.44 " ,
44 "type" : " module" ,
55 "bin" : " ./dist/cli/index.js" ,
66 "exports" : {
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { join } from "path";
66import { version } from "~/package.json" ;
77import { _dirname } from "./src/utils" ;
88import esbuild from "esbuild" ;
9- import { wasmLoader } from "esbuild-plugin-wasm" ;
109import { platform } from "os" ;
1110
1211const deps : string [ ] = [ "@prisma/prisma-schema-wasm" ] ;
@@ -31,10 +30,10 @@ await Promise.all([
3130 entrypoints : [ "./src/index.ts" ] ,
3231 external : deps ,
3332 outdir : "./dist" ,
34- // splitting: true,
33+ splitting : true ,
3534 target : "bun" ,
3635 sourcemap : "external" ,
37- // minify: true,
36+ minify : true ,
3837 } ) ,
3938 esbuild . build ( {
4039 entryPoints : [ "./src/main.ts" ] ,
@@ -43,9 +42,9 @@ await Promise.all([
4342 sourcemap : "external" ,
4443 format : "esm" ,
4544 platform : "node" ,
45+ minify : true ,
4646 target : "esnext" ,
4747 external : deps ,
48- plugins : [ wasmLoader ( ) ] ,
4948 } ) ,
5049 await copy ( "./prisma" , "./dist/prisma" ) ,
5150 import . meta. env . NODE_ENV === "production" &&
Original file line number Diff line number Diff line change 1818 "core" : " workspace:*" ,
1919 "es-toolkit" : " ^1.34.1" ,
2020 "esbuild" : " ^0.25.2" ,
21- "esbuild-plugin-wasm" : " ^1.1.0" ,
2221 "fdir" : " ^6.4.3" ,
2322 "hono" : " ^4.7.6" ,
2423 "itertools-ts" : " ^2.2.0" ,
You can’t perform that action at this time.
0 commit comments