Skip to content

Commit e32099b

Browse files
authored
migrate to pnpm (#1245)
* migrate to pnpm * attempt to fix ci * attempt to fix ci 2 * attempt to fix ci 3
1 parent 7407d4c commit e32099b

File tree

23 files changed

+7612
-6862
lines changed

23 files changed

+7612
-6862
lines changed

.github/workflows/pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
npmTag: alpha
1717
buildScript: build
1818
nodeVersion: 18
19+
packageManager: pnpm
1920
secrets:
2021
githubToken: ${{ secrets.GUILD_BOT_TOKEN }}
2122
npmToken: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
with:
1111
releaseScript: release
1212
nodeVersion: 18
13+
packageManager: pnpm
1314
secrets:
1415
githubToken: ${{ secrets.GITHUB_TOKEN }}
1516
npmToken: ${{ secrets.NPM_TOKEN }}

.github/workflows/tests.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111
name: Lint
1212
uses: the-guild-org/shared-config/.github/workflows/lint.yml@main
1313
with:
14-
script: yarn ci:lint
14+
script: pnpm ci:lint
15+
packageManager: pnpm
1516
secrets:
1617
githubToken: ${{ secrets.GITHUB_TOKEN }}
1718

@@ -32,15 +33,16 @@ jobs:
3233
uses: the-guild-org/shared-config/setup@main
3334
with:
3435
nodeVersion: 18
36+
packageManager: pnpm
3537

3638
- name: Use GraphQL v${{matrix.graphql_version}}
3739
run: node ./scripts/match-graphql.mjs ${{matrix.graphql_version}}
3840

3941
- name: Install Dependencies
40-
run: yarn
42+
run: pnpm i --no-frozen-lockfile
4143

4244
- name: Build
43-
run: yarn build
45+
run: pnpm build
4446

4547
- name: Upload build artifact
4648
uses: actions/upload-artifact@v3
@@ -68,18 +70,19 @@ jobs:
6870
uses: the-guild-org/shared-config/setup@main
6971
with:
7072
nodeVersion: ${{matrix.node-version}}
73+
packageManager: pnpm
7174

7275
- name: Use GraphQL v${{matrix.graphql_version}}
7376
run: node scripts/match-graphql.mjs ${{matrix.graphql_version}}
7477

7578
- name: Install Dependencies
76-
run: yarn
79+
run: pnpm i --no-frozen-lockfile
7780

7881
- name: Cache Jest
7982
uses: actions/cache@v3
8083
with:
8184
path: .cache/jest
82-
key: ${{runner.os}}-${{matrix.node_version}}-jest-${{hashFiles('yarn.lock')}}
85+
key: ${{runner.os}}-${{matrix.node_version}}-jest-${{hashFiles('pnpm-lock.yaml')}}
8386
restore-keys: |
8487
${{runner.os}}-${{matrix.node_version}}-jest-
8588
@@ -92,6 +95,6 @@ jobs:
9295
path: packages/plugin/dist
9396

9497
- name: Test
95-
run: yarn test
98+
run: pnpm test
9699
env:
97100
CI: true

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
strict-peer-dependencies=false
2+
shell-emulator=true

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ docs/rules/
33
packages/plugin/tests/__snapshots__/
44
examples/prettier/invalid.graphql
55
examples/prettier/invalid.js
6+
pnpm-lock.yaml

examples/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"graphql": "16.6.0"
1212
},
1313
"devDependencies": {
14-
"@graphql-eslint/eslint-plugin": "3.13.0",
14+
"@graphql-eslint/eslint-plugin": "workspace:*",
1515
"eslint": "8.26.0"
1616
}
1717
}

examples/code-file/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"graphql": "16.6.0"
1212
},
1313
"devDependencies": {
14-
"@graphql-eslint/eslint-plugin": "3.13.0",
14+
"@graphql-eslint/eslint-plugin": "workspace:*",
1515
"eslint": "8.26.0"
1616
}
1717
}

examples/graphql-config-code-file/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"graphql-tag": "2.12.6"
1313
},
1414
"devDependencies": {
15-
"@graphql-eslint/eslint-plugin": "3.13.0",
15+
"@graphql-eslint/eslint-plugin": "workspace:*",
1616
"eslint": "8.26.0"
1717
}
1818
}

examples/graphql-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"graphql": "16.6.0"
1212
},
1313
"devDependencies": {
14-
"@graphql-eslint/eslint-plugin": "3.13.0",
14+
"@graphql-eslint/eslint-plugin": "workspace:*",
1515
"eslint": "8.26.0"
1616
}
1717
}

examples/monorepo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"graphql": "16.6.0"
1111
},
1212
"devDependencies": {
13-
"@graphql-eslint/eslint-plugin": "3.13.0",
13+
"@graphql-eslint/eslint-plugin": "workspace:*",
1414
"eslint": "8.26.0"
1515
}
1616
}

0 commit comments

Comments
 (0)