Skip to content

Commit 0f06f57

Browse files
fullstackjamclaude
andcommitted
ci: bump Node to 22 and silence knip on cloudflare:test virtual module
CI Node 20 → 22 because @cloudflare/vitest-pool-workers transitively pulls @cloudflare/kv-asset-handler@0.5.0 which requires Node ≥22. knip drift sensor was flagging every `cloudflare:test` import as an unlisted dependency (it doesn't grok the virtual-module convention). Added `cloudflare` to knip.json's ignoreDependencies so the sensor stops opening tracking issues for this. The package itself is provided by @cloudflare/vitest-pool-workers and not a real dependency entry. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0f15b8e commit 0f06f57

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Node.js
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: '20'
23+
node-version: '22'
2424

2525
- name: Install dependencies
2626
run: npm install --legacy-peer-deps

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
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

2626
- name: Install dependencies
2727
run: npm install --legacy-peer-deps

.github/workflows/harness.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- uses: actions/checkout@v4
3535
- uses: actions/setup-node@v4
3636
with:
37-
node-version: '20'
37+
node-version: '22'
3838
- name: npm audit --audit-level=high
3939
# Fails on a high-or-critical advisory. Production-only because we
4040
# don't act on devDep advisories (no runtime exposure).
@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/checkout@v4
4949
- uses: actions/setup-node@v4
5050
with:
51-
node-version: '20'
51+
node-version: '22'
5252
- name: Install dependencies
5353
run: npm install --legacy-peer-deps --no-audit --no-fund
5454
- name: Run knip

knip.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://unpkg.com/knip@5/schema.json",
33
"entry": ["src/lib/components/SearchModal.svelte!"],
4-
"ignoreDependencies": ["@cloudflare/workers-types"],
4+
"ignoreDependencies": ["@cloudflare/workers-types", "cloudflare"],
55
"rules": {
66
"exports": "off",
77
"types": "off",

0 commit comments

Comments
 (0)