Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: address issues reported by yarn doctor #734

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.cache/
.idea/
.npmrc
.yarnclean
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
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ module.exports =
: {
rootDir: __dirname,
projects: ['<rootDir>/packages/**/*/jest.config.js'],
resolver: './node_modules/bob-the-bundler/jest-resolver.cjs',
resolver: require.resolve('bob-the-bundler/jest-resolver'),
};
4 changes: 2 additions & 2 deletions jest.project.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ module.exports = ({ dirname, projectMode = true }) => {
moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths, {
prefix: `${ROOT_DIR}/`,
}),
cacheDirectory: resolve(ROOT_DIR, `${CI ? '' : 'node_modules/'}.cache/jest`),
cacheDirectory: resolve(ROOT_DIR, `.cache/jest`),
setupFiles: [`${ROOT_DIR}/dev-test/setup.js`],
collectCoverage: false,
testTimeout: 20000,
resolver: './node_modules/bob-the-bundler/jest-resolver.cjs',
resolver: require.resolve('bob-the-bundler/jest-resolver'),
snapshotFormat: {
escapeString: false,
printBasicPrototype: false,
Expand Down
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"
]
}
}
6 changes: 4 additions & 2 deletions packages/plugins/c-sharp/c-sharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"test": "jest --no-watchman"
},
"peerDependencies": {
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
"graphql-tag": "2.12.6"
},
"dependencies": {
"@graphql-codegen/c-sharp-common": "1.0.0",
Expand All @@ -44,7 +45,8 @@
"unixify": "^1.0.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0"
"@graphql-codegen/testing": "1.18.0",
"jest-each": "^28.1.3"
},
"publishConfig": {
"directory": "dist",
Expand Down
3 changes: 3 additions & 0 deletions packages/plugins/typescript/apollo-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0",
"@graphql-codegen/typescript": "^2.8.1",
"@graphql-codegen/typescript-operations": "2.5.6",
"graphql-tag": "2.12.6"
},
"publishConfig": {
Expand Down
5 changes: 5 additions & 0 deletions packages/plugins/typescript/generic-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
"auto-bind": "~4.0.0",
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0",
"@graphql-codegen/typescript": "^2.8.1",
"@graphql-codegen/typescript-operations": "^2.5.6"
},
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
2 changes: 2 additions & 0 deletions packages/plugins/typescript/graphql-apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@
"@apollo/client": "3.10.6",
"@graphql-codegen/core": "2.6.3",
"@graphql-codegen/testing": "1.18.0",
"@graphql-codegen/typescript": "^2.8.1",
"@graphql-codegen/typescript-operations": "2.5.6",
"@graphql-tools/schema": "10.0.4",
"cross-fetch": "3.1.8",
"fs-extra": "^11.2.0",
"react": "18.3.1"
},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
"@graphql-codegen/plugin-helpers": "^3.0.0",
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0"
},
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
4 changes: 4 additions & 0 deletions packages/plugins/typescript/graphql-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/core": "2.6.3",
"@graphql-codegen/testing": "1.18.0",
"@graphql-codegen/typescript": "^2.8.1",
"@graphql-codegen/typescript-operations": "2.5.6",
"@graphql-tools/schema": "10.0.4",
"fs-extra": "^11.2.0",
"graphql-request": "6.0.0"
},
"publishConfig": {
Expand Down
3 changes: 3 additions & 0 deletions packages/plugins/typescript/jit-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0",
"@graphql-codegen/typescript": "^2.8.1",
"@graphql-codegen/typescript-operations": "2.5.6",
"@graphql-tools/utils": "10.2.2",
"graphql-jit": "0.8.6"
},
Expand Down
5 changes: 4 additions & 1 deletion packages/plugins/typescript/react-apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0"
"@graphql-codegen/testing": "1.18.0",
"@graphql-codegen/typescript": "^2.8.1",
"@graphql-codegen/typescript-operations": "2.5.6",
"jest-docblock": "28.1.1"
},
"publishConfig": {
"directory": "dist",
Expand Down
5 changes: 5 additions & 0 deletions packages/plugins/typescript/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
"change-case-all": "1.0.15",
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0",
"@graphql-codegen/typescript": "^2.8.1",
"@graphql-codegen/typescript-operations": "2.5.6"
},
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
5 changes: 5 additions & 0 deletions packages/plugins/typescript/solid-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
"change-case-all": "1.0.15",
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0",
"@graphql-codegen/typescript": "^2.8.1",
"@graphql-codegen/typescript-operations": "2.5.6"
},
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
5 changes: 5 additions & 0 deletions packages/plugins/typescript/urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
"auto-bind": "~4.0.0",
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0",
"@graphql-codegen/typescript": "^2.8.1",
"@graphql-codegen/typescript-operations": "2.5.6"
},
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
6 changes: 6 additions & 0 deletions packages/plugins/typescript/vue-apollo-smart-ops/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
"change-case-all": "1.0.15",
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0",
"@graphql-codegen/typescript": "^2.8.1",
"@graphql-codegen/typescript-operations": "2.5.6",
"jest-docblock": "28.1.1"
},
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
6 changes: 6 additions & 0 deletions packages/plugins/typescript/vue-apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
"change-case-all": "1.0.15",
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0",
"@graphql-codegen/typescript": "^2.8.1",
"@graphql-codegen/typescript-operations": "2.5.6",
"jest-docblock": "28.1.1"
},
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
5 changes: 5 additions & 0 deletions packages/plugins/typescript/vue-urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
"change-case-all": "1.0.15",
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0",
"@graphql-codegen/typescript": "^2.8.1",
"@graphql-codegen/typescript-operations": "2.5.6"
},
"publishConfig": {
"directory": "dist",
"access": "public"
Expand Down
4 changes: 3 additions & 1 deletion packages/presets/near-operation-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
},
"devDependencies": {
"@graphql-codegen/cli": "2.13.9",
"@types/parse-filepath": "1.0.2"
"@types/parse-filepath": "1.0.2",
"graphql-request": "^6.0.0",
"graphql-tag": "^2.12.6"
},
"publishConfig": {
"directory": "dist",
Expand Down
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
Loading