Skip to content

Commit 1021acf

Browse files
gusgardclaude
andauthored
Migrate from Yarn to pnpm (#201)
* Migrate from Yarn to pnpm Replace Yarn 3.5.0 (Berry) with pnpm 10.29.3 as the package manager for both the root project and the example folder. Changes: - Update packageManager field in root and example package.json - Replace yarn commands with pnpm in all scripts - Add eslint-plugin-prettier as explicit devDependency (required by pnpm's strict dependency resolution) - Add pnpm-compatible transformIgnorePatterns for Jest (handles .pnpm directory structure) - Configure pnpm.onlyBuiltDependencies for pre-commit hook support - Update GitHub Actions CI to use pnpm/action-setup@v4 with caching - Remove .yarn directory, .yarnrc.yml, and yarn.lock from both root and example - Add pnpm-lock.yaml - Update CLAUDE.md to reflect pnpm commands https://claude.ai/code/session_01SUpZUWxrTYoGms6QN3VtQ9 * Remove pre-commit hook and library - Remove `pre-commit` devDependency and its `spawn-sync` transitive dep - Remove `"pre-commit"` config section from package.json - Remove `lint-and-test` script (was only used by pre-commit) - Remove `pnpm.onlyBuiltDependencies` config (no longer needed) - Remove git pre-commit hook file - Update CLAUDE.md to remove pre-commit references https://claude.ai/code/session_01SUpZUWxrTYoGms6QN3VtQ9 * Run CI on all branches Remove branch filters from GitHub Actions workflow so CI runs on all pushes and pull requests, not just master. https://claude.ai/code/session_01SUpZUWxrTYoGms6QN3VtQ9 --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent a129351 commit 1021acf

2,323 files changed

Lines changed: 7599 additions & 19093 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/node.js.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ name: Node.js CI
55

66
on:
77
push:
8-
branches: [ master ]
98
pull_request:
10-
branches: [ master ]
119

1210
jobs:
1311
build:
@@ -20,13 +18,14 @@ jobs:
2018

2119
steps:
2220
- uses: actions/checkout@v4
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
2323
- name: Use Node.js ${{ matrix.node-version }}
2424
uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix.node-version }}
27-
- name: Enable Corepack
28-
run: corepack enable
29-
- run: yarn install
30-
- run: yarn tsc
31-
- run: yarn lint
32-
- run: yarn jest
27+
cache: 'pnpm'
28+
- run: pnpm install
29+
- run: pnpm tsc
30+
- run: pnpm lint
31+
- run: pnpm jest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ local.properties
3535
node_modules/
3636
npm-debug.log
3737
yarn-error.log
38+
pnpm-debug.log
3839

3940
# BUCK
4041
buck-out/
Binary file not shown.
Binary file not shown.
-3.85 KB
Binary file not shown.
-3.98 KB
Binary file not shown.
Binary file not shown.
-278 KB
Binary file not shown.
-47.8 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)