Skip to content

Commit

Permalink
chore: upgrade yarn to its latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
vecerek committed Jun 22, 2024
1 parent 8f09535 commit 22e2a99
Show file tree
Hide file tree
Showing 8 changed files with 13,628 additions and 8,339 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
name: Linting Check
uses: the-guild-org/shared-config/.github/workflows/lint.yml@main
with:
packageManagerVersion: 4.2.2
script: yarn ci:lint
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -29,6 +30,8 @@ jobs:
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18
- name: Enable Corepack
run: corepack enable
- name: Prettier Check
run: yarn prettier:check
dev-tests:
Expand All @@ -46,6 +49,8 @@ jobs:
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18
- name: Enable Corepack
run: corepack enable
- name: Build
run: yarn build
env:
Expand All @@ -64,6 +69,8 @@ jobs:
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 17
- name: Enable Corepack
run: corepack enable
- name: Build
run: yarn build
env:
Expand Down Expand Up @@ -96,6 +103,8 @@ jobs:
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: ${{matrix.node_version}}
- name: Enable Corepack
run: corepack enable
- name: Use GraphQL v${{matrix.graphql_version}}
run: node ./scripts/match-graphql.js ${{matrix.graphql_version}}
- name: Install Dependencies
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
dependencies:
uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@main
with:
packageManagerVersion: 4.2.2
secrets:
githubToken: ${{ secrets.GUILD_BOT_TOKEN }}

Expand All @@ -16,6 +18,7 @@ jobs:
npmTag: alpha
buildScript: build
nodeVersion: 18
packageManagerVersion: 4.2.2
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
stable:
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main
with:
packageManagerVersion: 4.2.2
releaseScript: release
nodeVersion: 18
secrets:
Expand Down
2 changes: 0 additions & 2 deletions .yarnrc

This file was deleted.

1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
httpTimeout: 1000000000
nodeLinker: node-modules
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,31 @@
"packages/plugins/other/*",
"packages/presets/*"
],
"packageManager": "yarn@1.22.22",
"packageManager": "yarn@4.2.2",
"scripts": {
"build": "bob build",
"build": "rimraf dist/ .bob/ tsconfig.tsbuildinfo && bob build",
"ci:lint": "eslint --ext .ts . --output-file eslint_report.json --format json",
"clean": "rimraf node_modules/",
"generate:examples": "yarn generate:examples:cjs",
"generate:examples:cjs": "graphql-codegen --require dotenv/config --config ./dev-test/codegen.ts dotenv_config_path=dev-test/.env",
"generate:examples:esm": "graphql-codegen-esm --require dotenv/config --config ./dev-test/codegen.ts dotenv_config_path=dev-test/.env",
"lint": "eslint --ext .ts .",
"postinstall": "patch-package && husky install",
"prebuild": "rimraf dist/ .bob/ tsconfig.tsbuildinfo",
"prerelease": "yarn build",
"prettier": "prettier --write --list-different .",
"prettier:check": "prettier --check .",
"release": "changeset publish",
"release": "yarn build && changeset publish",
"test": "jest --forceExit --no-watchman",
"test-and-build": "yarn build && yarn test",
"types:check": "tsc --noEmit",
"watch-build": "npx tsc-watch --project tsconfig.json --onSuccess \"bob build\""
"watch-build": "yarn dlx -p typescript -p tsc-watch tsc-watch --project tsconfig.json --onSuccess \"bob build\""
},
"devDependencies": {
"@babel/core": "7.24.7",
"@babel/preset-env": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.5",
"@graphql-codegen/cli": "^5.0.2",
"@theguild/prettier-config": "1.1.2",
"@types/jest": "28.1.8",
"@types/node": "20.14.7",
Expand Down Expand Up @@ -76,7 +75,7 @@
"prettier --write"
],
"yarn.lock": [
"npx yarn-deduplicate"
"yarn dedupe"
]
}
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"noUnusedLocals": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"ignoreDeprecations": "5.0",
"paths": {
"@graphql-codegen/flow": ["packages/plugins/flow/flow/src/index.ts"],
"@graphql-codegen/flow-operations": ["packages/plugins/flow/operations/src/index.ts"],
Expand Down
Loading

0 comments on commit 22e2a99

Please sign in to comment.