Skip to content

Commit

Permalink
fix: correct the build
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Jan 8, 2024
1 parent 571b128 commit 12a1b6c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/nbt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build:type": "tsc",
"build:cjs": "esbuild --target=node16 --platform=node --sourcemap --format=cjs --bundle --outfile=dist/index.js index.ts",
"build:esm": "esbuild --target=node16 --platform=node --sourcemap --format=esm --bundle --outfile=dist/index.mjs index.ts",
"build:browser": "esbuild --target=es2020 --external:pako --sourcemap --format=esm --bundle --outfile=dist/index.browser.mjs index.ts"
"build:browser": "esbuild --target=es2020 --external:@xmcl/* --external:pako --sourcemap --format=esm --bundle --outfile=dist/index.browser.mjs index.ts"
},
"publishConfig": {
"access": "public",
Expand Down
5 changes: 2 additions & 3 deletions packages/resourcepack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
},
"scripts": {
"build:type": "tsc",
"build:cjs": "esbuild --target=node16 --platform=node --sourcemap --format=cjs --bundle --outfile=dist/index.js index.ts",
"build:esm": "esbuild --target=node16 --platform=node --sourcemap --format=esm --bundle --outfile=dist/index.mjs index.ts",
"build:browser": "esbuild --target=es2020 --external:pako --sourcemap --format=esm --bundle --outfile=dist/index.browser.mjs index.ts"
"build:cjs": "esbuild --target=node16 --platform=node --external:@xmcl/* --sourcemap --format=cjs --bundle --outfile=dist/index.js index.ts",
"build:esm": "esbuild --target=node16 --platform=node --external:@xmcl/* --sourcemap --format=esm --bundle --outfile=dist/index.mjs index.ts"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build:type": "tsc",
"build:cjs": "esbuild --target=node16 --external:yauzl --external:@xmcl/* --platform=node --sourcemap --format=cjs --bundle --outfile=dist/index.js index.ts",
"build:esm": "esbuild --target=node16 --external:yauzl --external:@xmcl/* --platform=node --sourcemap --format=esm --bundle --outfile=dist/index.mjs index.ts",
"build:browser": "esbuild --target=es2020 --sourcemap --external:jszip --format=esm --bundle --outfile=dist/index.browser.mjs index.browser.ts"
"build:browser": "esbuild --target=es2020 --sourcemap --external:jszip --external:@xmcl/* --format=esm --bundle --outfile=dist/index.browser.mjs index.browser.ts"
},
"publishConfig": {
"main": "./dist/index.js",
Expand Down

0 comments on commit 12a1b6c

Please sign in to comment.