Skip to content

Commit c76cae9

Browse files
dnlboxclaude
andauthored
chore(deps): migrate to pnpm 11 (#2)
* chore(deps): migrate pnpm config from package.json to pnpm-workspace.yaml; bump packageManager to pnpm 11 - Remove `pnpm.onlyBuiltDependencies` from package.json (removed in pnpm 11) - Create pnpm-workspace.yaml with allowBuilds map (esbuild, lefthook) - Bump packageManager to pnpm@11.1.3 - Bump engines.pnpm to >=11.0.0 Removes the pnpm 10 pin that was a tactical measure during the Node 22 engine bump. Reference: https://pnpm.io/migration Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * ci(snyk): pass --all-projects flag Snyk's pnpm plugin now sees pnpm-workspace.yaml (added in the prior commit for the pnpm 11 migration) and treats the repo as a monorepo. Without --all-projects it errors with SNYK-CLI-0000: Both `pnpm-lock.yaml` and `pnpm-workspace.yaml` were found in /github/workspace. Please run your command again specifying `--all-projects` flag. This repo is single-project; --all-projects is the right answer per Snyk's own error message. No behaviour change for a single-project scan; just unblocks the workflow under the new pnpm config layout. --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7edef88 commit c76cae9

5 files changed

Lines changed: 12 additions & 1012 deletions

File tree

.github/workflows/snyk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
env:
3838
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
3939
with:
40-
args: --severity-threshold=high --sarif-file-output=snyk.sarif
40+
args: --severity-threshold=high --sarif-file-output=snyk.sarif --all-projects
4141

4242
- name: Upload results to GitHub Security tab
4343
uses: github/codeql-action/upload-sarif@v4

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All notable changes are documented here. Format follows [Keep a Changelog](https
55
## [Unreleased]
66

77
### Changed
8+
- Dev: migrated pnpm config from `package.json` `pnpm.onlyBuiltDependencies` (removed in pnpm 11) to `pnpm-workspace.yaml` `allowBuilds`. `packageManager` and `engines.pnpm` bumped to pnpm 11. No user-facing behaviour change; published package surface is identical.
89
- **BREAKING**: minimum Node version raised from 20 to 22 (`engines.node >=22.0.0`). Driven by upstream pnpm 11.x dropping Node 20 support (uses `node:sqlite`, available in Node 22.13+ only). `@types/node` bumped to `^24` (LTS line). `packageManager` field added (`pnpm@10.32.1`) to pin CI pnpm version; CI workflows updated to read from `packageManager` instead of a hardcoded `version` constraint.
910
- Upgraded CLI framework `commander` 12→14. No user-facing behaviour change expected; `--help`, `--version`, and subcommand signatures (`validate`, `compare`, `normalize`, `info`, `list-resources`) are unchanged. If `--help` output formatting shifts (whitespace), it is upstream cosmetic.
1011
- Dev: bumped typescript 5.9→6; added `"ignoreDeprecations": "6.0"` to tsconfig.json to silence two TS6 deprecation warnings (`baseUrl` and `esModuleInterop: false`) — both intentional and will be revisited before TypeScript 7. No user-facing behaviour change.

package.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
"prepublishOnly": "pnpm build && pnpm typecheck && pnpm test",
6565
"cli": "tsx src/cli/index.ts",
6666
"cli:watch": "tsx --watch src/cli/index.ts",
67-
"docs:dev": "vitepress dev docs/site",
68-
"docs:build": "vitepress build docs/site",
69-
"docs:preview": "vitepress preview docs/site"
67+
"docs:dev": "pnpm --dir docs/site dev",
68+
"docs:build": "pnpm --dir docs/site build",
69+
"docs:preview": "pnpm --dir docs/site preview"
7070
},
7171
"dependencies": {
7272
"commander": "^14.0.3",
@@ -86,18 +86,11 @@
8686
"tsx": "^4.22.3",
8787
"typescript": "^6.0.3",
8888
"typescript-eslint": "^8.59.4",
89-
"vitepress": "^1.6.4",
9089
"vitest": "^3.2.4"
9190
},
92-
"packageManager": "pnpm@10.32.1",
91+
"packageManager": "pnpm@11.1.3",
9392
"engines": {
9493
"node": ">=22.0.0",
95-
"pnpm": ">=10.0.0"
96-
},
97-
"pnpm": {
98-
"onlyBuiltDependencies": [
99-
"esbuild",
100-
"lefthook"
101-
]
94+
"pnpm": ">=11.0.0"
10295
}
10396
}

0 commit comments

Comments
 (0)