Skip to content

Commit

Permalink
chore: address issues uncovered by @yarnpkg/doctor
Browse files Browse the repository at this point in the history
- undeclared dependencies
- strings referencing the node_modules directory

For more details: https://yarnpkg.com/migration/pnp\#calling-the-doctor
  • Loading branch information
vecerek committed Jun 22, 2024
1 parent 22e2a99 commit 4f11ff1
Show file tree
Hide file tree
Showing 19 changed files with 184 additions and 7 deletions.
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: 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
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
Loading

0 comments on commit 4f11ff1

Please sign in to comment.