Upgrade to Node.js 20.

This commit is contained in:
Daniel Scalzi
2024-02-22 10:49:07 -05:00
parent b783e4784d
commit 5f6c58d863
5 changed files with 213 additions and 299 deletions

2
.nvmrc
View File

@@ -1 +1 @@
18
20

View File

@@ -4,17 +4,11 @@ Generate a distribution.json for Helios. Documentation on this format can be fou
## Requirements
* Node.js 18
* Java 8+ (https://adoptopenjdk.net/)
* Node.js 20
* Java 8+ (https://adoptium.net/)
* This is required to run the forge installer, process [XZ](https://tukaani.org/xz/format.html) files, and run bytecode analysis on mod files.
* Although 1.17 requires Java 16, the forge installer works with Java 8.
### Notes
* Nebula is not 100% complete. Unfinished items are listed on the [TODO list](https://github.com/dscalzi/Nebula/issues/2).
* Currently only supports creating Forge based servers. Vanilla support will be added when Helios v2 is complete.
## Setup
1. Clone the repository
@@ -23,7 +17,7 @@ Generate a distribution.json for Helios. Documentation on this format can be fou
Example
```properties
JAVA_EXECUTABLE=C:\Program Files\Eclipse Foundation\jdk-17.0.0.35-hotspot\bin\java.exe
JAVA_EXECUTABLE=C:\Program Files\Eclipse Adoptium\jdk-17.0.9.9-hotspot\bin\java.exe
ROOT=D:\TestRoot2
BASE_URL=http://localhost:8080/
HELIOS_DATA_FOLDER=C:\Users\user\AppData\Roaming\Helios Launcher

477
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,7 +11,7 @@
"start": "npm run build && node dist/index.js",
"fs": "node dist/index.js",
"faststart": "node dist/index.js",
"lint": "eslint . --ext .js,.ts"
"lint": "eslint ."
},
"repository": {
"type": "git",
@@ -30,27 +30,28 @@
"homepage": "https://github.com/dscalzi/Nebula#readme",
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/luxon": "^3.3.6",
"@types/node": "^18.19.2",
"@types/luxon": "^3.4.2",
"@types/node": "^20.11.19",
"@types/triple-beam": "^1.3.5",
"@types/yargs": "^17.0.32",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"eslint": "^8.55.0",
"rimraf": "^5.0.5",
"typescript": "^5.3.2"
"typescript": "^5.3.3"
},
"dependencies": {
"dotenv": "^16.3.1",
"dotenv": "^16.4.5",
"fs-extra": "^11.2.0",
"got": "^13.0.0",
"got": "^14.2.0",
"helios-distribution-types": "^1.3.0",
"luxon": "^3.4.4",
"minimatch": "^9.0.3",
"node-stream-zip": "^1.15.0",
"toml": "^3.0.0",
"triple-beam": "^1.4.1",
"ts-json-schema-generator": "^1.4.1",
"ts-json-schema-generator": "^1.5.0",
"typescript-eslint": "^7.0.2",
"winston": "^3.11.0",
"yargs": "^17.7.2"
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"target": "ES2022",
"module": "Node16",
"lib": ["ES2022"],
"lib": ["ES2022", "DOM"],
"sourceMap": true,
"outDir": "dist",
"strict": true,