diff --git a/.changeset/pretty-zebras-boil.md b/.changeset/pretty-zebras-boil.md new file mode 100644 index 00000000000..7ce63d3b57e --- /dev/null +++ b/.changeset/pretty-zebras-boil.md @@ -0,0 +1,61 @@ +--- +'@graphql-cli/codegen': patch +'@graphql-codegen/cli': patch +'@graphql-codegen/core': patch +'@graphql-codegen/c-sharp': patch +'@graphql-codegen/c-sharp-operations': patch +'@graphql-codegen/flow': patch +'@graphql-codegen/flow-operations': patch +'@graphql-codegen/flow-resolvers': patch +'@graphql-codegen/java-apollo-android': patch +'@graphql-codegen/java-common': patch +'@graphql-codegen/java': patch +'@graphql-codegen/kotlin': patch +'@graphql-codegen/java-resolvers': patch +'@graphql-codegen/add': patch +'@graphql-codegen/fragment-matcher': patch +'@graphql-codegen/introspection': patch +'@graphql-codegen/jsdoc': patch +'@graphql-codegen/schema-ast': patch +'@graphql-codegen/time': patch +'@graphql-codegen/urql-introspection': patch +'@graphql-codegen/visitor-plugin-common': patch +'@graphql-codegen/typescript-apollo-angular': patch +'@graphql-codegen/typescript-apollo-client-helpers': patch +'@graphql-codegen/typescript-document-nodes': patch +'@graphql-codegen/typescript-enum-array': patch +'@graphql-codegen/typescript-generic-sdk': patch +'@graphql-codegen/gql-tag-operations': patch +'@graphql-codegen/typescript-graphql-apollo': patch +'@graphql-codegen/typescript-graphql-files-modules': patch +'@graphql-codegen/typescript-graphql-request': patch +'@graphql-codegen/typescript-jit-sdk': patch +'@graphql-codegen/typescript-mongodb': patch +'@graphql-codegen/typescript-msw': patch +'@graphql-codegen/named-operations-object': patch +'@graphql-codegen/typescript-oclif': patch +'@graphql-codegen/typescript-operations': patch +'@graphql-codegen/typescript-react-apollo': patch +'@graphql-codegen/typescript-react-offix': patch +'@graphql-codegen/typescript-react-query': patch +'@graphql-codegen/typescript-resolvers': patch +'@graphql-codegen/typescript-rtk-query': patch +'@graphql-codegen/typescript-stencil-apollo': patch +'@graphql-codegen/typescript-type-graphql': patch +'@graphql-codegen/typed-document-node': patch +'@graphql-codegen/typescript': patch +'@graphql-codegen/typescript-urql': patch +'@graphql-codegen/typescript-urql-graphcache': patch +'@graphql-codegen/urql-svelte-operations-store': patch +'@graphql-codegen/typescript-vue-apollo': patch +'@graphql-codegen/typescript-vue-apollo-smart-ops': patch +'@graphql-codegen/typescript-vue-urql': patch +'@graphql-codegen/gql-tag-operations-preset': patch +'@graphql-codegen/graphql-modules-preset': patch +'@graphql-codegen/import-types-preset': patch +'@graphql-codegen/near-operation-file-preset': patch +'@graphql-codegen/testing': patch +'@graphql-codegen/plugin-helpers': patch +--- + +Fix exports in package.json files for react-native projects diff --git a/packages/graphql-cli-codegen-plugin/package.json b/packages/graphql-cli-codegen-plugin/package.json index a2109ae7a7b..9d74c347cdc 100644 --- a/packages/graphql-cli-codegen-plugin/package.json +++ b/packages/graphql-cli-codegen-plugin/package.json @@ -32,6 +32,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/graphql-codegen-cli/package.json b/packages/graphql-codegen-cli/package.json index 308da3c7507..cec38109b9d 100644 --- a/packages/graphql-codegen-cli/package.json +++ b/packages/graphql-codegen-cli/package.json @@ -104,6 +104,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/graphql-codegen-core/package.json b/packages/graphql-codegen-core/package.json index 4d4593e1841..db637228ced 100644 --- a/packages/graphql-codegen-core/package.json +++ b/packages/graphql-codegen-core/package.json @@ -46,6 +46,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/c-sharp/c-sharp-operations/package.json b/packages/plugins/c-sharp/c-sharp-operations/package.json index df0bd1a366b..36f7722a802 100644 --- a/packages/plugins/c-sharp/c-sharp-operations/package.json +++ b/packages/plugins/c-sharp/c-sharp-operations/package.json @@ -24,6 +24,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/c-sharp/c-sharp/package.json b/packages/plugins/c-sharp/c-sharp/package.json index df738a40d07..578aae74be6 100644 --- a/packages/plugins/c-sharp/c-sharp/package.json +++ b/packages/plugins/c-sharp/c-sharp/package.json @@ -23,6 +23,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/flow/flow/package.json b/packages/plugins/flow/flow/package.json index 78d365c0cb1..3da5e7dc5ad 100644 --- a/packages/plugins/flow/flow/package.json +++ b/packages/plugins/flow/flow/package.json @@ -25,6 +25,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/flow/operations/package.json b/packages/plugins/flow/operations/package.json index bf646906c96..74710912a76 100644 --- a/packages/plugins/flow/operations/package.json +++ b/packages/plugins/flow/operations/package.json @@ -26,6 +26,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/flow/resolvers/package.json b/packages/plugins/flow/resolvers/package.json index 10d72a5dd21..fe7e295b618 100644 --- a/packages/plugins/flow/resolvers/package.json +++ b/packages/plugins/flow/resolvers/package.json @@ -27,6 +27,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/java/apollo-android/package.json b/packages/plugins/java/apollo-android/package.json index cc91820db3a..939deab9c41 100644 --- a/packages/plugins/java/apollo-android/package.json +++ b/packages/plugins/java/apollo-android/package.json @@ -31,6 +31,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/java/common/package.json b/packages/plugins/java/common/package.json index d1648857928..05c8fdef7b8 100644 --- a/packages/plugins/java/common/package.json +++ b/packages/plugins/java/common/package.json @@ -26,6 +26,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/java/java/package.json b/packages/plugins/java/java/package.json index 71ccb4fd4fc..1a11e7c2fd7 100644 --- a/packages/plugins/java/java/package.json +++ b/packages/plugins/java/java/package.json @@ -25,6 +25,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/java/kotlin/package.json b/packages/plugins/java/kotlin/package.json index cfa6145ba73..a27aeb6029b 100644 --- a/packages/plugins/java/kotlin/package.json +++ b/packages/plugins/java/kotlin/package.json @@ -25,6 +25,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/java/resolvers/package.json b/packages/plugins/java/resolvers/package.json index 459abf0398f..a145f2d9cb0 100644 --- a/packages/plugins/java/resolvers/package.json +++ b/packages/plugins/java/resolvers/package.json @@ -25,6 +25,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/other/add/package.json b/packages/plugins/other/add/package.json index 5912e46487a..32b3dff0005 100644 --- a/packages/plugins/other/add/package.json +++ b/packages/plugins/other/add/package.json @@ -22,6 +22,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/other/fragment-matcher/package.json b/packages/plugins/other/fragment-matcher/package.json index ab2fdb9a0fb..d32644f90a6 100644 --- a/packages/plugins/other/fragment-matcher/package.json +++ b/packages/plugins/other/fragment-matcher/package.json @@ -23,6 +23,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/other/introspection/package.json b/packages/plugins/other/introspection/package.json index 023ef18326c..1cfabf256ae 100644 --- a/packages/plugins/other/introspection/package.json +++ b/packages/plugins/other/introspection/package.json @@ -23,6 +23,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/other/jsdoc/package.json b/packages/plugins/other/jsdoc/package.json index 2aa3b223819..430bc1e29d8 100644 --- a/packages/plugins/other/jsdoc/package.json +++ b/packages/plugins/other/jsdoc/package.json @@ -24,6 +24,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/other/schema-ast/package.json b/packages/plugins/other/schema-ast/package.json index c700a3dcae1..e8676dcfa1a 100644 --- a/packages/plugins/other/schema-ast/package.json +++ b/packages/plugins/other/schema-ast/package.json @@ -24,6 +24,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/other/time/package.json b/packages/plugins/other/time/package.json index ce155024ae2..655d372957d 100644 --- a/packages/plugins/other/time/package.json +++ b/packages/plugins/other/time/package.json @@ -25,6 +25,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/other/urql-introspection/package.json b/packages/plugins/other/urql-introspection/package.json index 7eca28cb04a..f29fe9daf37 100644 --- a/packages/plugins/other/urql-introspection/package.json +++ b/packages/plugins/other/urql-introspection/package.json @@ -24,6 +24,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/other/visitor-plugin-common/package.json b/packages/plugins/other/visitor-plugin-common/package.json index 0e1dd3c6cb6..33744cfc7e9 100644 --- a/packages/plugins/other/visitor-plugin-common/package.json +++ b/packages/plugins/other/visitor-plugin-common/package.json @@ -33,6 +33,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/apollo-angular/package.json b/packages/plugins/typescript/apollo-angular/package.json index 968011ffc18..9c58418e8b6 100644 --- a/packages/plugins/typescript/apollo-angular/package.json +++ b/packages/plugins/typescript/apollo-angular/package.json @@ -27,6 +27,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/apollo-client-helpers/package.json b/packages/plugins/typescript/apollo-client-helpers/package.json index 5e4ac39ef4a..79cc582a1fb 100644 --- a/packages/plugins/typescript/apollo-client-helpers/package.json +++ b/packages/plugins/typescript/apollo-client-helpers/package.json @@ -29,6 +29,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/document-nodes/package.json b/packages/plugins/typescript/document-nodes/package.json index 92d0d3061f3..c0c8f817f55 100644 --- a/packages/plugins/typescript/document-nodes/package.json +++ b/packages/plugins/typescript/document-nodes/package.json @@ -25,6 +25,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/enum-array/package.json b/packages/plugins/typescript/enum-array/package.json index 2a18738cb44..567a569960d 100644 --- a/packages/plugins/typescript/enum-array/package.json +++ b/packages/plugins/typescript/enum-array/package.json @@ -23,6 +23,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/generic-sdk/package.json b/packages/plugins/typescript/generic-sdk/package.json index c585f0ba76d..68f5ae564d0 100644 --- a/packages/plugins/typescript/generic-sdk/package.json +++ b/packages/plugins/typescript/generic-sdk/package.json @@ -26,6 +26,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/gql-tag-operations/package.json b/packages/plugins/typescript/gql-tag-operations/package.json index 2be600679d4..8e9570b68c6 100644 --- a/packages/plugins/typescript/gql-tag-operations/package.json +++ b/packages/plugins/typescript/gql-tag-operations/package.json @@ -27,6 +27,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/graphql-apollo/package.json b/packages/plugins/typescript/graphql-apollo/package.json index 18dfc14e5b2..9163ef1e89c 100644 --- a/packages/plugins/typescript/graphql-apollo/package.json +++ b/packages/plugins/typescript/graphql-apollo/package.json @@ -32,6 +32,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/graphql-files-modules/package.json b/packages/plugins/typescript/graphql-files-modules/package.json index 4faddbe4155..aae02f9a7c2 100644 --- a/packages/plugins/typescript/graphql-files-modules/package.json +++ b/packages/plugins/typescript/graphql-files-modules/package.json @@ -23,6 +23,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/graphql-request/package.json b/packages/plugins/typescript/graphql-request/package.json index 7a9bdb3d296..9da6485a3b2 100644 --- a/packages/plugins/typescript/graphql-request/package.json +++ b/packages/plugins/typescript/graphql-request/package.json @@ -31,6 +31,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/jit-sdk/package.json b/packages/plugins/typescript/jit-sdk/package.json index 7d915cdf648..057e7491747 100644 --- a/packages/plugins/typescript/jit-sdk/package.json +++ b/packages/plugins/typescript/jit-sdk/package.json @@ -32,6 +32,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/mongodb/package.json b/packages/plugins/typescript/mongodb/package.json index df80972f813..a4b85e98c88 100644 --- a/packages/plugins/typescript/mongodb/package.json +++ b/packages/plugins/typescript/mongodb/package.json @@ -32,6 +32,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/msw/package.json b/packages/plugins/typescript/msw/package.json index e9692d28564..98f94325855 100644 --- a/packages/plugins/typescript/msw/package.json +++ b/packages/plugins/typescript/msw/package.json @@ -26,6 +26,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/named-operations-object/package.json b/packages/plugins/typescript/named-operations-object/package.json index d8f6354d094..26415b81f77 100644 --- a/packages/plugins/typescript/named-operations-object/package.json +++ b/packages/plugins/typescript/named-operations-object/package.json @@ -25,6 +25,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/oclif/package.json b/packages/plugins/typescript/oclif/package.json index 48295af112b..1177a5aa46f 100644 --- a/packages/plugins/typescript/oclif/package.json +++ b/packages/plugins/typescript/oclif/package.json @@ -30,6 +30,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/operations/package.json b/packages/plugins/typescript/operations/package.json index 6800a4a89fc..54e765f05d5 100644 --- a/packages/plugins/typescript/operations/package.json +++ b/packages/plugins/typescript/operations/package.json @@ -26,6 +26,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/react-apollo-offix/package.json b/packages/plugins/typescript/react-apollo-offix/package.json index 59469b7cba4..42ab099fa62 100644 --- a/packages/plugins/typescript/react-apollo-offix/package.json +++ b/packages/plugins/typescript/react-apollo-offix/package.json @@ -24,6 +24,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/react-apollo/package.json b/packages/plugins/typescript/react-apollo/package.json index a1e80576027..a1a69b1ab02 100644 --- a/packages/plugins/typescript/react-apollo/package.json +++ b/packages/plugins/typescript/react-apollo/package.json @@ -27,6 +27,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/react-query/package.json b/packages/plugins/typescript/react-query/package.json index 5bfcb0d3563..c45f53eb92a 100644 --- a/packages/plugins/typescript/react-query/package.json +++ b/packages/plugins/typescript/react-query/package.json @@ -27,6 +27,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/resolvers/package.json b/packages/plugins/typescript/resolvers/package.json index 7e581787f87..dcd6b585ed7 100644 --- a/packages/plugins/typescript/resolvers/package.json +++ b/packages/plugins/typescript/resolvers/package.json @@ -30,6 +30,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/rtk-query/package.json b/packages/plugins/typescript/rtk-query/package.json index bcc7b0c9075..ffe6dbccacd 100644 --- a/packages/plugins/typescript/rtk-query/package.json +++ b/packages/plugins/typescript/rtk-query/package.json @@ -34,6 +34,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/stencil-apollo/package.json b/packages/plugins/typescript/stencil-apollo/package.json index bbf249af695..cf4cbb7f11a 100644 --- a/packages/plugins/typescript/stencil-apollo/package.json +++ b/packages/plugins/typescript/stencil-apollo/package.json @@ -28,6 +28,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/type-graphql/package.json b/packages/plugins/typescript/type-graphql/package.json index c08210e3288..99cc3a11967 100644 --- a/packages/plugins/typescript/type-graphql/package.json +++ b/packages/plugins/typescript/type-graphql/package.json @@ -26,6 +26,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/typed-document-node/package.json b/packages/plugins/typescript/typed-document-node/package.json index c156a3e4e5d..8d45530099c 100644 --- a/packages/plugins/typescript/typed-document-node/package.json +++ b/packages/plugins/typescript/typed-document-node/package.json @@ -26,6 +26,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/typescript/package.json b/packages/plugins/typescript/typescript/package.json index 9bd419813a4..469962d3583 100644 --- a/packages/plugins/typescript/typescript/package.json +++ b/packages/plugins/typescript/typescript/package.json @@ -26,6 +26,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/urql-graphcache/package.json b/packages/plugins/typescript/urql-graphcache/package.json index b632976fb40..57593840950 100644 --- a/packages/plugins/typescript/urql-graphcache/package.json +++ b/packages/plugins/typescript/urql-graphcache/package.json @@ -28,6 +28,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/urql-svelte-operations-store/package.json b/packages/plugins/typescript/urql-svelte-operations-store/package.json index eb5082adaa0..6de7aeeaf6e 100644 --- a/packages/plugins/typescript/urql-svelte-operations-store/package.json +++ b/packages/plugins/typescript/urql-svelte-operations-store/package.json @@ -28,6 +28,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/urql/package.json b/packages/plugins/typescript/urql/package.json index 028363dbfd1..b4e666c9e84 100644 --- a/packages/plugins/typescript/urql/package.json +++ b/packages/plugins/typescript/urql/package.json @@ -27,6 +27,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/vue-apollo-smart-ops/package.json b/packages/plugins/typescript/vue-apollo-smart-ops/package.json index 22f2ff6208c..b5c594d40cb 100644 --- a/packages/plugins/typescript/vue-apollo-smart-ops/package.json +++ b/packages/plugins/typescript/vue-apollo-smart-ops/package.json @@ -27,6 +27,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/vue-apollo/package.json b/packages/plugins/typescript/vue-apollo/package.json index decd10a25b2..7d7eac2c0e9 100644 --- a/packages/plugins/typescript/vue-apollo/package.json +++ b/packages/plugins/typescript/vue-apollo/package.json @@ -27,6 +27,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/plugins/typescript/vue-urql/package.json b/packages/plugins/typescript/vue-urql/package.json index 86dba92a20e..a2796ed3e66 100644 --- a/packages/plugins/typescript/vue-urql/package.json +++ b/packages/plugins/typescript/vue-urql/package.json @@ -27,6 +27,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/presets/gql-tag-operations/package.json b/packages/presets/gql-tag-operations/package.json index 58abedcf585..08bd90f54d7 100644 --- a/packages/presets/gql-tag-operations/package.json +++ b/packages/presets/gql-tag-operations/package.json @@ -36,6 +36,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/presets/graphql-modules/package.json b/packages/presets/graphql-modules/package.json index 8e43b3332cb..0a0983698a1 100644 --- a/packages/presets/graphql-modules/package.json +++ b/packages/presets/graphql-modules/package.json @@ -28,6 +28,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/presets/import-types/package.json b/packages/presets/import-types/package.json index ae4507df340..d90b62c464d 100644 --- a/packages/presets/import-types/package.json +++ b/packages/presets/import-types/package.json @@ -25,6 +25,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/presets/near-operation-file/package.json b/packages/presets/near-operation-file/package.json index 3cfbded2614..cb084b64d1c 100644 --- a/packages/presets/near-operation-file/package.json +++ b/packages/presets/near-operation-file/package.json @@ -30,6 +30,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/utils/graphql-codegen-testing/package.json b/packages/utils/graphql-codegen-testing/package.json index 3cc020acd3b..587bd6c03dc 100644 --- a/packages/utils/graphql-codegen-testing/package.json +++ b/packages/utils/graphql-codegen-testing/package.json @@ -5,6 +5,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/utils/plugins-helpers/package.json b/packages/utils/plugins-helpers/package.json index 53662d3b8e6..3be520c82dd 100644 --- a/packages/utils/plugins-helpers/package.json +++ b/packages/utils/plugins-helpers/package.json @@ -27,6 +27,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "exports": { + "./package.json": "./package.json", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs"