Skip to content

Commit

Permalink
build: upgrade to node 20, the new lts
Browse files Browse the repository at this point in the history
  • Loading branch information
YoRyan committed Nov 4, 2023
1 parent 4a75d96 commit 83ccb47
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TypeScriptToLua",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18",
"image": "mcr.microsoft.com/devcontainers/javascript-node:20",
"customizations": {
"vscode": {
"extensions": [
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ node_modules
yarn.lock
.vscode
.idea
.DS_Store
.DS_Store

/build.js
/build-worker.js
2 changes: 1 addition & 1 deletion build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class MultiProcessTranspiler implements Transpiler {
return spareWorker;
} else if (this.workersToSpawn > 0) {
this.workersToSpawn--;
return fork("./build-worker.ts", { stdio: ["ipc", "inherit", "inherit"] });
return fork("./build-worker.js", { stdio: ["ipc", "inherit", "inherit"] });
} else {
return await new Promise<ChildProcess>(resolve => {
this.waitingForWorker.push(resolve);
Expand Down
68 changes: 57 additions & 11 deletions package-lock.json

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
"lint": "prettier --check .",
"fix:prettier": "prettier --write .",
"test": "jest",
"watch": "ts-node-esm ./build.ts watch",
"build": "ts-node-esm ./build.ts build"
"watch": "tsc && node ./build.js watch",
"build": "tsc && node ./build.js build"
},
"dependencies": {
"@colors/colors": "^1.6.0",
"glob": "^10.2.1",
"lua-types": "^2.13.1",
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
"typescript-to-lua": "^1.14.0"
},
Expand Down

0 comments on commit 83ccb47

Please sign in to comment.