Upgrade to Node.js 16.

This commit is contained in:
Daniel Scalzi
2021-10-31 02:38:16 -04:00
parent b0f0f02cf9
commit e97ac9bfad
6 changed files with 2593 additions and 398 deletions

2
.nvmrc
View File

@@ -1 +1 @@
14 16

View File

@@ -4,10 +4,10 @@ Generate a distribution.json for Helios. Documentation on this format can be fou
## Requirements ## Requirements
* Node.js 14 * Node.js 16
* Java 16+ (https://adoptopenjdk.net/) * Java 8+ (https://adoptopenjdk.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. * This is required to run the forge installer, process [XZ](https://tukaani.org/xz/format.html) files, and run bytecode analysis on mod files.
* Java 8 may not work for Forge 1.17+. Older versions do work with Java 16 (for nebula's purposes). This will be updated when Forge 1.17 is released. * Although 1.17 requires Java 16, the forge installer works with Java 8.
### Notes ### Notes
@@ -29,9 +29,6 @@ BASE_URL=http://localhost:8080/
HELIOS_DATA_FOLDER=C:\Users\user\AppData\Roaming\Helios Launcher HELIOS_DATA_FOLDER=C:\Users\user\AppData\Roaming\Helios Launcher
``` ```
It's recommended to use Java 16 as the executable. Minecraft 1.17 requires Java 16+, so the assumption is that the Forge installer for 1.17 will require Java 16.
Java 8 may not work for 1.17+. This will be updated when we know definitively.
## Usage ## Usage
Nebula is still being developed. Usage may change, but it has remained stable for some time now. Nebula is still being developed. Usage may change, but it has remained stable for some time now.

2960
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -28,16 +28,16 @@
"homepage": "https://github.com/dscalzi/Nebula#readme", "homepage": "https://github.com/dscalzi/Nebula#readme",
"devDependencies": { "devDependencies": {
"@types/fs-extra": "^9.0.13", "@types/fs-extra": "^9.0.13",
"@types/luxon": "^2.0.4", "@types/luxon": "^2.0.5",
"@types/minimatch": "^3.0.5", "@types/minimatch": "^3.0.5",
"@types/node": "^14.17.20", "@types/node": "^16.11.6",
"@types/triple-beam": "^1.3.2", "@types/triple-beam": "^1.3.2",
"@types/yargs": "^17.0.3", "@types/yargs": "^17.0.3",
"@typescript-eslint/eslint-plugin": "^4.32.0", "@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^4.32.0", "@typescript-eslint/parser": "^5.2.0",
"eslint": "^7.32.0", "eslint": "^8.1.0",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"typescript": "^4.4.3" "typescript": "^4.4.4"
}, },
"dependencies": { "dependencies": {
"dotenv": "^10.0.0", "dotenv": "^10.0.0",
@@ -49,7 +49,7 @@
"node-stream-zip": "^1.15.0", "node-stream-zip": "^1.15.0",
"toml": "^3.0.0", "toml": "^3.0.0",
"triple-beam": "^1.3.0", "triple-beam": "^1.3.0",
"ts-json-schema-generator": "^0.95.0", "ts-json-schema-generator": "^0.96.0",
"winston": "^3.3.3", "winston": "^3.3.3",
"yargs": "^17.2.1" "yargs": "^17.2.1"
} }

View File

@@ -152,7 +152,7 @@ export class ForgeModStructure113 extends BaseForgeModStructure {
try { try {
const manifest = zip.entryDataSync('META-INF/MANIFEST.MF') const manifest = zip.entryDataSync('META-INF/MANIFEST.MF')
const keys = manifest.toString().split('\n') const keys = manifest.toString().split('\n')
this.logger.debug(keys) // this.logger.debug(keys)
for (const key of keys) { for (const key of keys) {
const match = ForgeModStructure113.IMPLEMENTATION_VERSION_REGEX.exec(key) const match = ForgeModStructure113.IMPLEMENTATION_VERSION_REGEX.exec(key)
if (match != null) { if (match != null) {

View File

@@ -2,9 +2,9 @@
"compilerOptions": { "compilerOptions": {
/* Basic Options */ /* Basic Options */
// "incremental": true, /* Enable incremental compilation */ // "incremental": true, /* Enable incremental compilation */
"target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ "target": "ES2021", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"lib": ["ES2019"], /* Specify library files to be included in the compilation. */ "lib": ["ES2021"], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */ // "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */ // "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */