Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/cli-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ concurrency:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ["22.13.0", "24"]
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v4
Expand All @@ -22,7 +26,7 @@ jobs:
- name: 🪢 Set up Node
uses: actions/setup-node@v4
with:
node-version: "24"
node-version: ${{ matrix.node-version }}
cache-dependency-path: "./pnpm-lock.yaml"
cache: "pnpm"

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: ["22.13.0", "24"]
runner: [macos-latest, ubuntu-latest, windows-latest]
include:
- runner: macos-latest
shell: bash
Expand All @@ -48,7 +50,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "24"
node-version: ${{ matrix.node-version }}
cache-dependency-path: "./pnpm-lock.yaml"
cache: "pnpm"

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Unreleased

- Change: The minimum supported Node.js version is now 22.13.0 (previously 24). ([#222](https://github.com/YoYoGames/gm-cli/issues/222))

# 2.4.1

- Fix: When a cached runtime is missing a module, the module is now installed for that exact runtime version instead of resolving to the latest version from the feed. ([#243](https://github.com/YoYoGames/gm-cli/issues/243))
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ pnpm build
pnpm link
```

GM-CLI supports Node.js 22.13.0 and later. Note that `pnpm gen:ggbe-api` runs a TypeScript file directly, which requires Node.js 22.18.0+ (or `--experimental-strip-types` on older 22.x releases).

## Versioning policy

GM-CLI uses [semantic versioning](https://semver.org), i.e. `MAJOR.MINOR.PATCH`. The public API surface consists of,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gm-cli": "dist/cli.js"
},
"engines": {
"node": ">=24"
"node": ">=22.13.0"
},
"scripts": {
"prebuild": "tsc -p tsconfig.json",
Expand All @@ -38,7 +38,7 @@
"@eslint/js": "^10.0.1",
"@stricli/core": "^1.2.6",
"@tony.ganchev/eslint-plugin-header": "3.4.3",
"@types/node": "24.x",
"@types/node": "22.x",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Switching to @types/node 22.x catches Node API usage, but tsconfig still has lib: ["esnext"] and target: "esnext", and tsup inherits that target. So tsc and esbuild won't flag ES built-ins that Node 22's V8 doesn't have, such as Promise.try or RegExp.escape. Nothing in src/ uses them today, and the e2e run on 22.13.0 would catch most cases. If you want tsc to enforce the floor, pinning lib to es2024 would do it. This is optional.

"@types/semver": "^7.7.1",
"chalk": "^5.6.2",
"eslint": "^10.2.0",
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

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

Loading