Skip to content

Commit

Permalink
fix: use esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Sep 30, 2024
1 parent 3d73511 commit cf28f3c
Show file tree
Hide file tree
Showing 2 changed files with 256 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"main": "lib/main.js",
"type": "module",
"scripts": {
"build": "tsc",
"package:entry": "ncc build node_modules/reg-cli/dist/entry.mjs -o dist/lib && mv dist/lib/index.mjs dist/lib/entry.mjs",
"package:worker": "ncc build node_modules/reg-cli/dist/worker.mjs -o dist/lib && mv dist/lib/index.mjs dist/lib/worker.mjs",
"package": "npm run build && npm run package:entry && npm run package:worker && ncc build lib/main.js --source-map --license licenses.txt -o dist/lib && mv dist/lib/index.js dist/lib/index.mjs"
"package:entry": "esbuild node_modules/reg-cli/dist/entry.mjs --bundle --platform=node --format=esm --outfile=dist/lib/entry.mjs",
"package:worker": "esbuild node_modules/reg-cli/dist/worker.mjs --bundle --platform=node --format=esm --outfile=dist/lib/worker.mjs",
"package:main": "esbuild src/main.ts --bundle --platform=node --format=esm --outfile=dist/lib/index.mjs",
"package": "npm run package:entry && npm run package:worker && npm run package:main"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -62,6 +62,7 @@
"@types/make-dir": "^2.1.0",
"@types/node": "^18.18.6",
"@vercel/ncc": "^0.34.0",
"esbuild": "^0.24.0",
"typescript": "^4.8.4"
}
}
251 changes: 251 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cf28f3c

Please sign in to comment.