Skip to content

Commit 5c7794e

Browse files
azuclaude
andcommitted
chore: migrate yarn v1 to pnpm
- Replace yarn.lock with pnpm-lock.yaml - Update package.json with packageManager field ([email protected]) - Update GitHub Actions workflow to use pnpm - Update Node.js test matrix to 18, 20, 22 - Add missing @textlint/ast-node-types dependency 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent fafedae commit 5c7794e

File tree

4 files changed

+4194
-3568
lines changed

4 files changed

+4194
-3568
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,20 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
node-version: [ 14, 16, 18 ]
11+
node-version: [ 18, 20, 22 ]
1212
steps:
1313
- name: checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
15+
with:
16+
persist-credentials: false
17+
- name: Install pnpm
18+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
1519
- name: setup Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1721
with:
18-
cache: "yarn"
22+
cache: "pnpm"
1923
node-version: ${{ matrix.node-version }}
2024
- name: Install
21-
run: yarn install
25+
run: pnpm install
2226
- name: Test
23-
run: yarn test
27+
run: pnpm test

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"build": "textlint-scripts build",
3030
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
3131
"prepare": "git config --local core.hooksPath .githooks",
32-
"prepublishOnly": "npm run build",
32+
"prepublishOnly": "pnpm run build",
3333
"test": "textlint-scripts test",
3434
"watch": "textlint-scripts build --watch"
3535
},
@@ -45,6 +45,7 @@
4545
"trailingComma": "none"
4646
},
4747
"devDependencies": {
48+
"@textlint/ast-node-types": "^13.3.2",
4849
"@textlint/types": "^13.3.2",
4950
"@types/node": "^18.15.10",
5051
"lint-staged": "^13.2.0",
@@ -60,5 +61,6 @@
6061
"dependencies": {
6162
"@textlint/regexp-string-matcher": "^2.0.2",
6263
"textlint-rule-helper": "^2.3.0"
63-
}
64+
},
65+
"packageManager": "[email protected]+sha512.3b3f6c725ebe712506c0ab1ad4133cf86b1f4b687effce62a9b38b4d72e3954242e643190fc51fa1642949c735f403debd44f5cb0edd657abe63a8b6a7e1e402"
6466
}

0 commit comments

Comments
 (0)