Skip to content

Commit 8c820e1

Browse files
pnpm (#1356)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 42ffb2e commit 8c820e1

File tree

12 files changed

+14297
-9838
lines changed

12 files changed

+14297
-9838
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ about: Create a bug report to help us improve
1010
_Progress of the issue based on the [Contributor Workflow](https://github.com/the-guild-org/Stack/blob/master/CONTRIBUTING.md#a-typical-contributor-workflow)_
1111

1212
- [ ] 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox
13-
> Make sure to fork this template and run `yarn generate` in the terminal.
13+
> Make sure to fork this template and run `pnpm run generate` in the terminal.
1414
>
1515
> Please make sure the Codegen and plugins version under `package.json` matches yours.
1616
- [ ] 2. A failing test has been provided

.github/workflows/main.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,24 @@ jobs:
2222
- name: Setup env
2323
uses: the-guild-org/shared-config/setup@main
2424
with:
25+
packageManager: 'pnpm'
2526
nodeVersion: ${{matrix.node_version}}
2627

2728
- name: Test
28-
run: yarn test
29+
run: pnpm run test
2930

3031
- name: Build
31-
run: yarn build
32+
run: pnpm run build
3233

3334
- name: Integrity check
34-
run: yarn bob check
35+
run: npx bob check
3536

3637
lint:
3738
name: Lint
3839
uses: the-guild-org/shared-config/.github/workflows/lint.yml@main
3940
with:
40-
script: yarn ci:lint
41+
script: pnpm run ci:lint
42+
packageManager: 'pnpm'
4143
secrets:
4244
githubToken: ${{ secrets.GITHUB_TOKEN }}
4345

@@ -49,7 +51,8 @@ jobs:
4951
- name: Setup env
5052
uses: the-guild-org/shared-config/setup@main
5153
with:
54+
packageManager: 'pnpm'
5255
nodeVersion: 16
5356

5457
- name: Lint Prettier
55-
run: yarn prettier:check
58+
run: pnpm run prettier:check

.github/workflows/pr.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ jobs:
99
dependencies:
1010
uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@main
1111
with:
12-
preCommit: 'yarn prettier'
12+
preCommit: 'pnpm run prettier'
1313
installDependencies: true
14+
packageManager: 'pnpm'
1415
secrets:
1516
githubToken: ${{ secrets.GUILD_BOT_TOKEN }}
1617

@@ -20,6 +21,7 @@ jobs:
2021
npmTag: alpha
2122
buildScript: build
2223
nodeVersion: 18
24+
packageManager: 'pnpm'
2325
secrets:
2426
githubToken: ${{ secrets.GITHUB_TOKEN }}
2527
npmToken: ${{ secrets.NPM_TOKEN }}
@@ -30,5 +32,6 @@ jobs:
3032
domain: https://www.the-guild.dev/graphql/config/
3133
source: 'Config'
3234
setupEnvWorkingDirectory: './website'
35+
packageManager: 'pnpm'
3336
secrets:
3437
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ jobs:
2424
domain: https://www.the-guild.dev/graphql/config/
2525
source: 'Config'
2626
setupEnvWorkingDirectory: './website'
27+
packageManager: 'pnpm'

.github/workflows/website.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: setup env
2323
with:
2424
nodeVersion: 18
25-
packageManager: yarn
25+
packageManager: 'pnpm'
2626
workingDirectory: website
2727

2828
- uses: the-guild-org/shared-config/website-cf@main
@@ -37,5 +37,5 @@ jobs:
3737
projectName: graphql-config
3838
prId: ${{ github.event.pull_request.number }}
3939
websiteDirectory: website
40-
buildScript: yarn build
40+
buildScript: pnpm run build
4141
artifactDir: out

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"sideEffects": false,
66
"main": "dist/cjs/index.js",
77
"module": "dist/esm/index.js",
8+
"packageManager": "[email protected]",
89
"exports": {
910
".": {
1011
"require": {
@@ -33,17 +34,17 @@
3334
"type": "module",
3435
"scripts": {
3536
"postinstall": "tsx scripts/patch-graphql.ts",
36-
"prepublishOnly": "yarn build",
37+
"prepublishOnly": "pnpm run build",
3738
"clean": "rimraf dist",
38-
"prebuild": "yarn clean && yarn json-schema",
39+
"prebuild": "pnpm run clean && pnpm run json-schema",
3940
"postbuild": "tsx scripts/postbuild.ts",
4041
"build": "bob build",
4142
"prettier": "prettier --cache --write --list-different .",
4243
"prettier:check": "prettier --cache --check .",
4344
"lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --ignore-path .gitignore .",
4445
"ci:lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --ignore-path .gitignore . --output-file eslint_report.json --format json",
4546
"test": "vitest .",
46-
"prerelease": "yarn build",
47+
"prerelease": "pnpm run build",
4748
"release": "changeset publish",
4849
"json-schema": "typescript-json-schema src/types.ts IGraphQLConfig --out config-schema.json --ignoreErrors --required --titles && prettier --write config-schema.json"
4950
},
@@ -128,6 +129,7 @@
128129
}
129130
},
130131
"engines": {
131-
"node": ">= 16.0.0"
132+
"node": ">= 16.0.0",
133+
"pnpm": "7.32.4"
132134
}
133135
}

0 commit comments

Comments
 (0)