feat: Update minimum Node.js version to 20 (#3277)
This commit is contained in:
parent
80aad5a42c
commit
47dc16d243
|
@ -17,7 +17,7 @@ jobs:
|
||||||
contents: read # For checkout
|
contents: read # For checkout
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [20.x]
|
node-version: [20.x, 22.x, 24.x]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -62,7 +62,7 @@ jobs:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [20.x] # Should match the build job's matrix
|
node-version: [20.x, 22.x, 24.x] # Should match the build job's matrix
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -124,7 +124,7 @@ jobs:
|
||||||
pull-requests: write # For commenting
|
pull-requests: write # For commenting
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [20.x] # Should match the test job's matrix
|
node-version: [20.x, 22.x, 24.x] # Should match the test job's matrix
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
|
@ -88,8 +88,10 @@ This section guides contributors on how to build, modify, and understand the dev
|
||||||
|
|
||||||
**Prerequisites:**
|
**Prerequisites:**
|
||||||
|
|
||||||
1. Install [Node 18+](https://nodejs.org/en/download)
|
1. **Node.js**:
|
||||||
2. Git
|
- **Development:** Please use Node.js `~20.19.0`. This specific version is required due to an upstream development dependency issue. You can use a tool like [nvm](https://github.com/nvm-sh/nvm) to manage Node.js versions.
|
||||||
|
- **Production:** For running the CLI in a production environment, any version of Node.js `>=20` is acceptable.
|
||||||
|
2. **Git**
|
||||||
|
|
||||||
### Build Process
|
### Build Process
|
||||||
|
|
||||||
|
|
|
@ -332,7 +332,7 @@ Here's a conceptual example of what a context file at the root of a TypeScript p
|
||||||
- When generating new TypeScript code, please follow the existing coding style.
|
- When generating new TypeScript code, please follow the existing coding style.
|
||||||
- Ensure all new functions and classes have JSDoc comments.
|
- Ensure all new functions and classes have JSDoc comments.
|
||||||
- Prefer functional programming paradigms where appropriate.
|
- Prefer functional programming paradigms where appropriate.
|
||||||
- All code should be compatible with TypeScript 5.0 and Node.js 18+.
|
- All code should be compatible with TypeScript 5.0 and Node.js 20+.
|
||||||
|
|
||||||
## Coding Style:
|
## Coding Style:
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
"yargs": "^17.7.2"
|
"yargs": "^17.7.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0"
|
"node": ">=20.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@alcalzone/ansi-tokenize": {
|
"node_modules/@alcalzone/ansi-tokenize": {
|
||||||
|
@ -11252,7 +11252,7 @@
|
||||||
"vitest": "^3.1.1"
|
"vitest": "^3.1.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=20"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packages/cli/node_modules/@testing-library/dom": {
|
"packages/cli/node_modules/@testing-library/dom": {
|
||||||
|
@ -11416,7 +11416,7 @@
|
||||||
"vitest": "^3.1.1"
|
"vitest": "^3.1.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=20"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packages/core/node_modules/ignore": {
|
"packages/core/node_modules/ignore": {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@google/gemini-cli",
|
"name": "@google/gemini-cli",
|
||||||
"version": "0.1.9",
|
"version": "0.1.9",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0"
|
"node": ">=20.0.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
|
|
|
@ -75,6 +75,6 @@
|
||||||
"vitest": "^3.1.1"
|
"vitest": "^3.1.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=20"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,6 +55,6 @@
|
||||||
"vitest": "^3.1.1"
|
"vitest": "^3.1.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=20"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue