Skip to content

Commit 367da59

Browse files
nizosclaude
andcommitted
fix: add Node.js 22 engine constraint to package.json
Adds missing engines field to enforce Node.js 22+ requirement that was already implicitly needed by dependencies. Also updates all documentation and CI workflows to reflect this requirement. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ba9c2dd commit 367da59

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20
1+
FROM node:22
22

33
ARG TZ
44
ENV TZ="$TZ"

.devcontainer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A consistent, isolated environment for developing TDD Guard.
1313

1414
| Component | Purpose |
1515
| ------------------ | ----------------------------------------------- |
16-
| Node.js 20 | Main CLI & Vitest/Jest reporters |
16+
| Node.js 22 | Main CLI & Vitest/Jest reporters |
1717
| Python 3.11 + pipx | Pytest reporter |
1818
| PHP 8.2 + Composer | PHPUnit reporter |
1919
| Go 1.24 | Go reporter |

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 20
24+
node-version: 22
2525
cache: npm
2626

2727
- name: Setup PHP
@@ -54,7 +54,7 @@ jobs:
5454
- name: Setup Node.js
5555
uses: actions/setup-node@v4
5656
with:
57-
node-version: 20
57+
node-version: 22
5858
cache: npm
5959

6060
- name: Setup PHP
@@ -87,7 +87,7 @@ jobs:
8787
- name: Setup Node.js
8888
uses: actions/setup-node@v4
8989
with:
90-
node-version: 20
90+
node-version: 22
9191
cache: npm
9292

9393
- name: Install dependencies
@@ -106,7 +106,7 @@ jobs:
106106
- name: Setup Node.js
107107
uses: actions/setup-node@v4
108108
with:
109-
node-version: 20
109+
node-version: 22
110110
cache: npm
111111

112112
- name: Setup Go
@@ -138,7 +138,7 @@ jobs:
138138
- name: Setup Node.js
139139
uses: actions/setup-node@v4
140140
with:
141-
node-version: 20
141+
node-version: 22
142142
cache: npm
143143

144144
- name: Setup PHP

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Setup Node.js
5050
uses: actions/setup-node@v4
5151
with:
52-
node-version: 20
52+
node-version: 22
5353
cache: npm
5454

5555
- name: Install dependencies

DEVELOPMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
### Main Tests
66

7-
- Node.js 18+ and npm
7+
- Node.js 22+ and npm
88

99
### Reporter Tests
1010

11-
- Node.js 18+ and npm
11+
- Node.js 22+ and npm
1212
- Python 3.8+ (for pytest reporter)
1313
- PHP 8.1+ and Composer (for PHPUnit reporter)
1414
- Go 1.21+ (for Go reporter)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ TDD Guard ensures Claude Code follows Test-Driven Development principles. When y
3131

3232
## Requirements
3333

34-
- Node.js 18+
34+
- Node.js 22+
3535
- Claude Code or Anthropic API key
3636
- Test framework (Jest, Vitest, pytest, PHPUnit, Go 1.24+, or Rust with cargo/cargo-nextest)
3737

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"code-quality",
2020
"linting"
2121
],
22+
"engines": {
23+
"node": ">=22.0.0"
24+
},
2225
"workspaces": [
2326
"reporters/vitest",
2427
"reporters/jest"

0 commit comments

Comments
 (0)