chore: update build target to nodejs 20

This commit is contained in:
Linden committed 2024-07-05 14:38:07 +10:00
1 parent 71f5c69cd8
commit 8c6a14645f
4 files changed
+150 -133

No files matched your search

+3 -3
View File
@@ -19,7 +19,7 @@
"scripts": {
"build": "pnpm build:root && lerna run build",
"build:root": "node build.js && cd lib && tsc",
"watch": "esbuild --watch --bundle --platform=node --target=node16.9.1 src/index.ts --outfile=dist/build.js",
"watch": "esbuild --watch --bundle --platform=node --target=node20.12.2 src/index.ts --outfile=dist/build.js",
"lib": "tsc --project lib/tsconfig.lib.json",
"bootstrap": "lerna bootstrap",
"postinstall": "patch-package && pnpm bootstrap"
@@ -32,9 +32,9 @@
},
"devDependencies": {
"@citizenfx/server": "2.0.5132-1",
"@types/node": "^17.0.45",
"@types/node": "^20.12.2",
"prettier": "^2.8.8",
"esbuild": "^0.21.5",
"esbuild": "^0.23.0",
"lerna": "^4.0.0",
"postinstall-postinstall": "^2.1.0",
"pretty-quick": "^3.3.1",