Skip to content

Commit 5b1aee5

Browse files
committed
chore: migrate to pnpm
1 parent dea50b0 commit 5b1aee5

13 files changed

Lines changed: 3542 additions & 5098 deletions

File tree

.github/workflows/CI-CD.yaml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,25 @@ jobs:
3232
- name: Checkout source
3333
uses: actions/checkout@v6
3434

35+
- name: Install pnpm
36+
uses: pnpm/action-setup@v4
37+
with:
38+
run_install: false
39+
3540
- name: Install Node ${{ matrix.node }}
3641
uses: actions/setup-node@v6
3742
with:
3843
node-version: ${{ matrix.node }}
44+
cache: pnpm
3945

4046
- name: Install dependencies
41-
run: yarn install --frozen-lockfile
47+
run: pnpm install --frozen-lockfile
4248

4349
- name: Run linter
44-
run: yarn lint
50+
run: pnpm lint
4551

4652
- name: Run Node tests
47-
run: yarn test:node
53+
run: pnpm test:node
4854

4955
- name: Send code coverage results to Coveralls
5056
uses: coverallsapp/github-action@v2
@@ -67,16 +73,22 @@ jobs:
6773
- name: Checkout source
6874
uses: actions/checkout@v6
6975

76+
- name: Install pnpm
77+
uses: pnpm/action-setup@v4
78+
with:
79+
run_install: false
80+
7081
- name: Install Node
7182
uses: actions/setup-node@v6
7283
with:
7384
node-version: lts/*
85+
cache: pnpm
7486

7587
- name: Install dependencies
76-
run: yarn install --frozen-lockfile
88+
run: pnpm install --frozen-lockfile
7789

7890
- name: Run tests
79-
run: yarn test:browser
91+
run: pnpm test:browser
8092

8193
- name: Send code coverage results to Coveralls
8294
uses: coverallsapp/github-action@v2
@@ -111,19 +123,25 @@ jobs:
111123
id-token: write
112124
steps:
113125
- uses: actions/checkout@v6
126+
- name: Install pnpm
127+
uses: pnpm/action-setup@v4
128+
with:
129+
run_install: false
130+
114131
- uses: actions/setup-node@v6
115132
with:
116133
node-version: lts/*
117134
registry-url: https://registry.npmjs.org
135+
cache: pnpm
118136

119137
- name: Install dependencies
120-
run: yarn install --frozen-lockfile
138+
run: pnpm install --frozen-lockfile
121139

122140
- name: Prepare Unscoped Package
123-
run: yarn build
141+
run: pnpm build
124142

125143
- name: Publish to NPM
126-
run: npx semantic-release
144+
run: pnpm dlx semantic-release
127145
env:
128146
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
129147
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ node_modules
4040
/coverage
4141
dist
4242

43-
.yarn/install-state.gz
43+
.pnpm-store

.yarn/releases/yarn-4.13.0.cjs

Lines changed: 0 additions & 940 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

AGENTS.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,39 @@ This file provides guidance to Codex (Codex.ai/code) when working with code in t
77
### Building
88

99
```bash
10-
yarn build # Compile TypeScript to dist/
11-
yarn typecheck # Run TypeScript type checking without emitting files
10+
pnpm build # Compile TypeScript to dist/
11+
pnpm typecheck # Run TypeScript type checking without emitting files
1212
```
1313

1414
### Testing
1515

1616
```bash
17-
yarn test # Run all tests with coverage (Vitest)
18-
yarn test:node # Run tests in Node.js environment
19-
yarn test:browser # Run tests in browser environment (jsdom)
20-
yarn test:watch # Run tests in watch mode
21-
yarn test:update # Update test snapshots
17+
pnpm test # Run all tests with coverage (Vitest)
18+
pnpm test:node # Run tests in Node.js environment
19+
pnpm test:browser # Run tests in browser environment (jsdom)
20+
pnpm test:watch # Run tests in watch mode
21+
pnpm test:update # Update test snapshots
2222
```
2323

2424
### Code Quality
2525

2626
```bash
27-
yarn lint # Run ESLint on lib/ directory
28-
yarn prettier # Format all code files
27+
pnpm lint # Run ESLint on lib/ directory
28+
pnpm prettier # Format all code files
2929
```
3030

3131
### Running Individual Tests
3232

3333
To run a single test file:
3434

3535
```bash
36-
npx vitest test/specs/circular/circular.spec.ts
36+
pnpm exec vitest test/specs/circular/circular.spec.ts
3737
```
3838

3939
To run tests matching a pattern:
4040

4141
```bash
42-
npx vitest --grep "circular"
42+
pnpm exec vitest --grep "circular"
4343
```
4444

4545
## Architecture Overview

CLAUDE.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,39 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
77
### Building
88

99
```bash
10-
yarn build # Compile TypeScript to dist/
11-
yarn typecheck # Run TypeScript type checking without emitting files
10+
pnpm build # Compile TypeScript to dist/
11+
pnpm typecheck # Run TypeScript type checking without emitting files
1212
```
1313

1414
### Testing
1515

1616
```bash
17-
yarn test # Run all tests with coverage (Vitest)
18-
yarn test:node # Run tests in Node.js environment
19-
yarn test:browser # Run tests in browser environment (jsdom)
20-
yarn test:watch # Run tests in watch mode
21-
yarn test:update # Update test snapshots
17+
pnpm test # Run all tests with coverage (Vitest)
18+
pnpm test:node # Run tests in Node.js environment
19+
pnpm test:browser # Run tests in browser environment (jsdom)
20+
pnpm test:watch # Run tests in watch mode
21+
pnpm test:update # Update test snapshots
2222
```
2323

2424
### Code Quality
2525

2626
```bash
27-
yarn lint # Run ESLint on lib/ directory
28-
yarn prettier # Format all code files
27+
pnpm lint # Run ESLint on lib/ directory
28+
pnpm prettier # Format all code files
2929
```
3030

3131
### Running Individual Tests
3232

3333
To run a single test file:
3434

3535
```bash
36-
npx vitest test/specs/circular/circular.spec.ts
36+
pnpm exec vitest test/specs/circular/circular.spec.ts
3737
```
3838

3939
To run tests matching a pattern:
4040

4141
```bash
42-
npx vitest --grep "circular"
42+
pnpm exec vitest --grep "circular"
4343
```
4444

4545
## Architecture Overview

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Install using [npm](https://docs.npmjs.com/about-npm/):
1515

1616
```bash
1717
npm install @apidevtools/json-schema-ref-parser
18-
yarn add @apidevtools/json-schema-ref-parser
18+
pnpm add @apidevtools/json-schema-ref-parser
1919
bun add @apidevtools/json-schema-ref-parser
2020
```
2121

@@ -142,10 +142,10 @@ To build/test the project locally on your computer:
142142
`git clone https://github.com/APIDevTools/json-schema-ref-parser.git`
143143

144144
2. **Install dependencies**<br>
145-
`yarn install`
145+
`pnpm install`
146146

147147
3. **Run the tests**<br>
148-
`yarn test`
148+
`pnpm test`
149149

150150
## License
151151

eslint.config.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ const globalToUse = {
1616

1717
const ignores = [
1818
".lintstagedrc.js",
19-
"**/.yarn/**/*",
2019
"**/dist/**/*",
2120
"public/js/*",
22-
".yarn/js/*",
2321
"dist/**/*",
2422
"coverage/**/*",
2523
];

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
"module": "dist/lib/index.js",
88
"main": "dist/lib/index.js",
99
"scripts": {
10-
"prepublishOnly": "yarn build",
10+
"prepublishOnly": "pnpm build",
1111
"lint": "eslint lib",
1212
"build": "rimraf dist && tsc",
1313
"typecheck": "tsc --noEmit",
1414
"prettier": "prettier --write \"**/*.+(js|jsx|ts|tsx|har||json|css|md)\"",
1515
"test": "vitest --coverage",
1616
"test:specific": "vitest invalid",
17-
"test:node": "yarn test",
17+
"test:node": "pnpm test",
1818
"test:browser": "node ./test/fixtures/run-browser-tests.mjs",
1919
"test:update": "vitest -u",
2020
"test:watch": "vitest -w"
@@ -72,32 +72,32 @@
7272
"@types/json-schema": "^7.0.15"
7373
},
7474
"dependencies": {
75-
"js-yaml": "^4.1.1"
75+
"js-yaml": "^4.2.0"
7676
},
7777
"devDependencies": {
78-
"@eslint/compat": "^2.0.3",
78+
"@eslint/compat": "^2.1.0",
7979
"@eslint/js": "^10.0.1",
8080
"@types/eslint": "^9.6.1",
8181
"@types/js-yaml": "^4.0.9",
8282
"@types/json-schema": "^7.0.15",
83-
"@types/node": "^25",
84-
"@typescript-eslint/eslint-plugin": "^8.57.2",
85-
"@typescript-eslint/parser": "^8.57.2",
86-
"@vitest/coverage-v8": "^4.1.2",
83+
"@types/node": "^25.9.3",
84+
"@typescript-eslint/eslint-plugin": "^8.61.0",
85+
"@typescript-eslint/parser": "^8.61.0",
86+
"@vitest/coverage-v8": "^4.1.8",
8787
"cross-env": "^10.1.0",
88-
"eslint": "^10.1.0",
88+
"eslint": "^10.4.1",
8989
"eslint-config-prettier": "^10.1.8",
9090
"eslint-plugin-import": "^2.32.0",
91-
"eslint-plugin-prettier": "^5.5.5",
92-
"eslint-plugin-promise": "^7.2.1",
91+
"eslint-plugin-prettier": "^5.5.6",
92+
"eslint-plugin-promise": "^7.3.0",
9393
"eslint-plugin-unused-imports": "^4.4.1",
94-
"globals": "^17.4.0",
95-
"jsdom": "^29.0.1",
96-
"prettier": "^3.8.1",
94+
"globals": "^17.6.0",
95+
"jsdom": "^29.1.1",
96+
"prettier": "^3.8.4",
9797
"rimraf": "^6.1.3",
98-
"typescript": "^6.0.2",
99-
"typescript-eslint": "^8.57.2",
100-
"vitest": "^4.1.2"
98+
"typescript": "^6.0.3",
99+
"typescript-eslint": "^8.61.0",
100+
"vitest": "^4.1.8"
101101
},
102102
"release": {
103103
"branches": [
@@ -110,5 +110,5 @@
110110
"@semantic-release/github"
111111
]
112112
},
113-
"packageManager": "yarn@4.13.0"
113+
"packageManager": "pnpm@11.5.3"
114114
}

0 commit comments

Comments
 (0)