From c2ebcb93186bab0292c816aaaa4711f5902b4a85 Mon Sep 17 00:00:00 2001 From: Daniel K Date: Sat, 23 Feb 2019 08:31:58 +0100 Subject: [PATCH] Add gqlImport config option --- docs/plugins/typescript-react-apollo.md | 5 + .../typescript-react-apollo/src/helpers.ts | 5 + .../typescript-react-apollo/src/index.ts | 4 +- .../src/root.handlebars | 2 +- .../tests/react-apollo.spec.ts | 21 ++ yarn.lock | 229 +++++++++++++++++- 6 files changed, 259 insertions(+), 7 deletions(-) diff --git a/docs/plugins/typescript-react-apollo.md b/docs/plugins/typescript-react-apollo.md index b6083efb7db..195a19940aa 100644 --- a/docs/plugins/typescript-react-apollo.md +++ b/docs/plugins/typescript-react-apollo.md @@ -47,6 +47,11 @@ Or if you prefer: ## Configuration +#### `gqlImport` (default value: `import gql from 'graphql-tag'`) + +Customize from where will be `gql` imported. This is useful if you want to use eg. `graphql.macro` for inlining documents. +Note that you need to write whole import line, eg. `import { gql } from 'graphql.macro'`. + #### `noHOC` (default value: `false`) This will disable the higher order components generation. diff --git a/packages/plugins/typescript-react-apollo/src/helpers.ts b/packages/plugins/typescript-react-apollo/src/helpers.ts index 0518e609f8d..ece3c5c0252 100644 --- a/packages/plugins/typescript-react-apollo/src/helpers.ts +++ b/packages/plugins/typescript-react-apollo/src/helpers.ts @@ -125,3 +125,8 @@ export const shouldOutputHook = (operationType: string, options: Handlebars.Help export const hooksNamespace = (operationType: string): string => { return operationType === 'subscription' ? 'SubscriptionHooks' : 'ReactApolloHooks'; }; + +export const gqlImport = (operationType: string, options: Handlebars.HelperOptions): string => { + const config = options.data.root.config || {}; + return config.gqlImport || 'import gql from \'graphql-tag\''; +}; diff --git a/packages/plugins/typescript-react-apollo/src/index.ts b/packages/plugins/typescript-react-apollo/src/index.ts index d72c08cb5ef..e94f3f48663 100644 --- a/packages/plugins/typescript-react-apollo/src/index.ts +++ b/packages/plugins/typescript-react-apollo/src/index.ts @@ -4,7 +4,7 @@ import { flattenTypes } from 'graphql-codegen-plugin-helpers'; import { GraphQLSchema } from 'graphql'; import * as Handlebars from 'handlebars'; import * as rootTemplate from './root.handlebars'; -import { generateFragments, gql, propsType, shouldOutputHook, hooksNamespace } from './helpers'; +import { generateFragments, gql, propsType, shouldOutputHook, hooksNamespace, gqlImport } from './helpers'; import { extname } from 'path'; export interface TypeScriptReactApolloConfig extends TypeScriptCommonConfig { @@ -15,6 +15,7 @@ export interface TypeScriptReactApolloConfig extends TypeScriptCommonConfig { withHooks?: boolean; withSubscriptionHooks?: boolean; importUseSubscriptionFrom?: string; + gqlImport?: string; } export const plugin: PluginFunction = async ( @@ -30,6 +31,7 @@ export const plugin: PluginFunction = async ( Handlebars.registerHelper('propsType', propsType(convert)); Handlebars.registerHelper('shouldOutputHook', shouldOutputHook); Handlebars.registerHelper('hooksNamespace', hooksNamespace); + Handlebars.registerHelper('gqlImport', gqlImport); const hbsContext = { ...templateContext, diff --git a/packages/plugins/typescript-react-apollo/src/root.handlebars b/packages/plugins/typescript-react-apollo/src/root.handlebars index 46427ae0eae..bccde6f5724 100644 --- a/packages/plugins/typescript-react-apollo/src/root.handlebars +++ b/packages/plugins/typescript-react-apollo/src/root.handlebars @@ -10,7 +10,7 @@ import * as ReactApolloHooks from 'react-apollo-hooks'; import * as SubscriptionHooks from '{{ @root.config.importUseSubscriptionFrom }}'; {{/if}} {{#unless @root.config.noGraphqlTag}} -import gql from 'graphql-tag'; +{{{gqlImport this}}}; {{/unless}} {{ blockCommentIf 'Fragments' fragments }} diff --git a/packages/plugins/typescript-react-apollo/tests/react-apollo.spec.ts b/packages/plugins/typescript-react-apollo/tests/react-apollo.spec.ts index 4560d1ad470..c02742f026b 100644 --- a/packages/plugins/typescript-react-apollo/tests/react-apollo.spec.ts +++ b/packages/plugins/typescript-react-apollo/tests/react-apollo.spec.ts @@ -465,6 +465,27 @@ describe('Components', () => { expect(content).not.toContain(`import gql from 'graphql-tag';`); }); + it(`should use gql import from gqlImport config option`, async () => { + const documents = gql` + query { + feed { + id + } + } + `; + + const content = await plugin( + schema, + [{ filePath: '', content: documents }], + { gqlImport: 'import { gql } from graphql.macro' }, + { + outputFile: 'graphql.tsx' + } + ); + + expect(content).toContain(`import { gql } from graphql.macro;`); + }); + it('should import ReactApolloHooks dependencies', async () => { const documents = gql` query { diff --git a/yarn.lock b/yarn.lock index a6ed8bf68b2..5d855b6dbb8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -838,6 +838,13 @@ version "7.0.5" resolved "https://registry.yarnpkg.com/@types/babel-types/-/babel-types-7.0.5.tgz#26f5bba8c58acd9b84d1a9135fb2789a1c191bc1" +"@types/babylon@6.16.4": + version "6.16.4" + resolved "https://registry.yarnpkg.com/@types/babylon/-/babylon-6.16.4.tgz#d3df72518b34a6a015d0dc58745cd238b5bb8ad2" + integrity sha512-8dZMcGPno3g7pJ/d0AyJERo+lXh9i1JhDuCUs+4lNIN9eUe5Yh6UCLrpgSEi05Ve2JMLauL2aozdvKwNL0px1Q== + dependencies: + "@types/babel-types" "*" + "@types/babylon@6.16.5": version "6.16.5" resolved "https://registry.yarnpkg.com/@types/babylon/-/babylon-6.16.5.tgz#1c5641db69eb8cdf378edd25b4be7754beeb48b4" @@ -953,6 +960,11 @@ version "10.12.26" resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.26.tgz#2dec19f1f7981c95cb54bab8f618ecb5dc983d0e" +"@types/prettier@1.15.2": + version "1.15.2" + resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-1.15.2.tgz#91594ea7cb6f3b1f7ea69f32621246654c7cc231" + integrity sha512-XIB0ZCaFZmWUHAa9dBqP5UKXXHwuukmVlP+XcyU94dui2k+l2lG+CHAbt2ffenHPUqoIs5Beh8Pdf2YEq/CZ7A== + "@types/prettier@1.16.1": version "1.16.1" resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-1.16.1.tgz#328d1c9b54402e44119398bcb6a31b7bbd606d59" @@ -1660,7 +1672,7 @@ astral-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" -async-each@^1.0.1: +async-each@^1.0.0, async-each@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" @@ -2118,7 +2130,7 @@ braces@^1.8.2: preserve "^0.2.0" repeat-element "^1.1.2" -braces@^2.3.1, braces@^2.3.2: +braces@^2.3.0, braces@^2.3.1, braces@^2.3.2: version "2.3.2" resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" dependencies: @@ -2480,6 +2492,26 @@ check-types@^7.3.0: version "7.4.0" resolved "https://registry.yarnpkg.com/check-types/-/check-types-7.4.0.tgz#0378ec1b9616ec71f774931a3c6516fad8c152f4" +chokidar@2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.0.4.tgz#356ff4e2b0e8e43e322d18a372460bbcf3accd26" + integrity sha512-z9n7yt9rOvIJrMhvDtDictKrkFHeihkNl6uWMmZlmL6tJtX9Cs+87oK+teBx+JIgzvbX3yZHT3eF8vpbDxHJXQ== + dependencies: + anymatch "^2.0.0" + async-each "^1.0.0" + braces "^2.3.0" + glob-parent "^3.1.0" + inherits "^2.0.1" + is-binary-path "^1.0.0" + is-glob "^4.0.0" + lodash.debounce "^4.0.8" + normalize-path "^2.1.1" + path-is-absolute "^1.0.0" + readdirp "^2.0.0" + upath "^1.0.5" + optionalDependencies: + fsevents "^1.2.2" + chokidar@2.1.2, chokidar@^2.0.0, chokidar@^2.0.2, chokidar@^2.0.4: version "2.1.2" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.2.tgz#9c23ea40b01638439e0513864d362aeacc5ad058" @@ -4635,7 +4667,7 @@ fsevents@1.2.4: nan "^2.9.2" node-pre-gyp "^0.10.0" -fsevents@^1.2.3, fsevents@^1.2.7: +fsevents@^1.2.2, fsevents@^1.2.3, fsevents@^1.2.7: version "1.2.7" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.7.tgz#4851b664a3783e52003b3c66eb0eee1074933aa4" dependencies: @@ -4868,6 +4900,183 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6 version "4.1.15" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.15.tgz#ffb703e1066e8a0eeaa4c8b80ba9253eeefbfb00" +graphql-code-generator@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-code-generator/-/graphql-code-generator-0.16.1.tgz#7220c98dd1cfaaf6022f7e629efefff4c90eb211" + integrity sha512-vp3GKilitpUtiOgJUBk7RhcYtFwy/OffR65mt9NCxeUQr5uDXR3dsb87Na+/opyiobE5JR/P3h6tG01i0G8+CA== + dependencies: + "@types/babylon" "6.16.4" + "@types/is-glob" "4.0.0" + "@types/prettier" "1.15.2" + "@types/valid-url" "1.0.2" + babel-types "7.0.0-beta.3" + babylon "7.0.0-beta.47" + chalk "2.4.2" + change-case "3.1.0" + chokidar "2.0.4" + commander "2.19.0" + common-tags "1.8.0" + detect-indent "5.0.0" + glob "7.1.3" + graphql-codegen-core "0.16.1" + graphql-config "2.2.1" + graphql-import "0.7.1" + graphql-tag-pluck "0.5.0" + graphql-toolkit "0.0.5" + graphql-tools "4.0.4" + indent-string "3.2.0" + inquirer "6.2.2" + is-glob "4.0.0" + is-valid-path "0.1.1" + js-yaml "3.12.1" + json-to-pretty-yaml "1.2.2" + listr "0.14.3" + listr-update-renderer "0.5.0" + log-symbols "2.2.0" + log-update "2.3.0" + mkdirp "0.5.1" + prettier "1.16.3" + request "2.88.0" + valid-url "1.0.9" + +graphql-codegen-add@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-add/-/graphql-codegen-add-0.16.1.tgz#976fee807423520314bdcdec7176260d13cfc3f6" + integrity sha512-7FKevWf/9uFZXsPQzm8mObDLWIGCARwQf3YigCSZOV/ToEqs8LtEFE8/sOvOof8suGRIFsvzjSAbhIA+w47y4g== + dependencies: + graphql-codegen-core "0.16.1" + +graphql-codegen-core@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-core/-/graphql-codegen-core-0.16.1.tgz#3ffe1b901cc8dd5afa53006f17d9114f15a114f1" + integrity sha512-KtvZqvB6no+vPtkIYpYpVSCclT0zfqSVCDZXTYu4GiMV2RdI7C+2/WMhDGPXEj5xwb6jDWaYH23BqiN3kObtrw== + dependencies: + chalk "2.4.2" + change-case "3.1.0" + common-tags "1.8.0" + graphql-tag "2.10.1" + graphql-toolkit "0.0.5" + graphql-tools "4.0.4" + ts-log "2.1.4" + winston "3.2.1" + +graphql-codegen-flow-documents@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-flow-documents/-/graphql-codegen-flow-documents-0.16.1.tgz#2a2fc39ff98710b56d71ed82a76490499e346ab7" + integrity sha512-hXM8ap4wcxLI3WcOZcHK21cVv9rwVrqC7uaIHNLkgSi0gXHmx9ypPbR5Dokmr3TLAeQ+e8BCFLB1QjRvoBBPsA== + dependencies: + graphql-codegen-core "0.16.1" + graphql-codegen-flow "0.16.1" + graphql-codegen-plugin-helpers "0.16.1" + +graphql-codegen-flow-resolvers@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-flow-resolvers/-/graphql-codegen-flow-resolvers-0.16.1.tgz#f51bc2d904881ec7e183aec5042649dc6a5c47d5" + integrity sha512-93j9hb4gYXo/zPIJGGPobF7itONw4VdP2kc801NSamG//n5NrJ/CC6dsjhBRSrZ1wg3JOgT4BsqFzoASOEY4Bg== + dependencies: + graphql-codegen-core "0.16.1" + graphql-codegen-flow "0.16.1" + graphql-codegen-plugin-helpers "0.16.1" + +graphql-codegen-flow@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-flow/-/graphql-codegen-flow-0.16.1.tgz#c677599d2f54ace1906fc5281878f490ea4a2a61" + integrity sha512-PaIOV4VfjYfA0Sa8tVPWffDcmRgGPqYOoRlJCS9394M32Y1HS8NhPlXek3og489hNOOSfyPOXvH6GGcIW+MQAA== + dependencies: + graphql-codegen-core "0.16.1" + graphql-codegen-plugin-helpers "0.16.1" + +graphql-codegen-introspection@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-introspection/-/graphql-codegen-introspection-0.16.1.tgz#c3f8c6f8a5bc8965be38f9e9ff96a755ef7810d3" + integrity sha512-HAKOcroK31QAtCp//nMOv+p2qPIKOBueubUMq7ECgIqAYnaIBMpsKzNrrSYDnNmsqZSO3U8SzKBQ3WIZB5h6+g== + +graphql-codegen-plugin-helpers@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-plugin-helpers/-/graphql-codegen-plugin-helpers-0.16.1.tgz#fa9f2d73b30a63f7db3cc7d1748fc419a679c160" + integrity sha512-VlNOBUoa9u1s0qk1nI7xQYNvQLQNv/XeVaEKIwzxZ9s5UmXYePIABnYzerSXfb8o4zasuQ/7TLvVQn6zqw30pQ== + dependencies: + graphql-codegen-core "0.16.1" + import-from "2.1.0" + +graphql-codegen-schema-ast@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-schema-ast/-/graphql-codegen-schema-ast-0.16.1.tgz#9c34e34aa6b01d89a9c5064982fc8df3438188d9" + integrity sha512-eU5/bL35eWg97kBOkLZUMK+ulwEGGfU4jZhT7w/5yE6Vj72BX5kkXdN/KhR2mBkyPJGJtE1J11/y4uXdSzMoEw== + +graphql-codegen-time@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-time/-/graphql-codegen-time-0.16.1.tgz#b3856ae8f5453d5a8a0fd863423bb8a90fbdd3d2" + integrity sha512-hno1gi72dtKpr8hZZWq5/PFdyMgeryStKWCWWtg5nci8vyW+Sd/9jNtKi1VGvp5FXeCKtCp6LbhSFOM6nEfSwg== + dependencies: + moment "2.24.0" + +graphql-codegen-typescript-apollo-angular@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-apollo-angular/-/graphql-codegen-typescript-apollo-angular-0.16.1.tgz#a2778afb248419a8a2b6ddcc4ad32268621ab9cc" + integrity sha512-Xg1eUJlox+yGEJ2cottdUBh4P0efqKzYHU4YrkJru+Cmk0mXKgrHC3sjzugZel6Ws2scMZ2nRXPfCIdQbOUbmA== + dependencies: + dependency-graph "0.8.0" + graphql-codegen-plugin-helpers "0.16.1" + graphql-codegen-typescript-common "0.16.1" + +graphql-codegen-typescript-client@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-client/-/graphql-codegen-typescript-client-0.16.1.tgz#d1fe82ed4d254244186a6c0b7da4795c2917319c" + integrity sha512-6y6+k6HzN/5il0q6qH3uYPiOe0URp+Iw/ChhRlMM7UupU26nGCT/lABlI/mIOVMHLUmMlecZY6v0GvYhe+8zkA== + dependencies: + graphql-codegen-core "0.16.1" + graphql-codegen-plugin-helpers "0.16.1" + graphql-codegen-typescript-common "0.16.1" + +graphql-codegen-typescript-common@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-common/-/graphql-codegen-typescript-common-0.16.1.tgz#8d958ae7d1c62a430763ad232940c336e3e4e4c4" + integrity sha512-WBNGYu84qJ7r677/nEGzERWmbIuHIFTp17MfmOXjh0zJHHmfBapEb7jqjYxDGw7/VVM5SaLDAYddjaU3AvpbPg== + dependencies: + change-case "3.1.0" + common-tags "1.8.0" + graphql-codegen-core "0.16.1" + graphql-codegen-plugin-helpers "0.16.1" + +graphql-codegen-typescript-graphql-files-modules@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-graphql-files-modules/-/graphql-codegen-typescript-graphql-files-modules-0.16.1.tgz#b0eba8a461f2786269c72d0179f4b2c3a2a43690" + integrity sha512-j9RdaMSle5C/ovOzqOYQd4aTgAAhCYXyGnctE5kORc36Gjxi7WA5o1AlxbOqdc8Gesqd3sIsvdNj3+/5b9f3Yg== + +graphql-codegen-typescript-mongodb@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-mongodb/-/graphql-codegen-typescript-mongodb-0.16.1.tgz#bf1044ac60b66080831507f0e3ea2f94e7667fb4" + integrity sha512-lhaAtNQT8KT9j1LK4BvzU5/Y4Uu8N4h7445WAmeIXeBiUYxYR5I171TAPxbxhjpViYQZZQl0lvbz0pSvvaw5nA== + dependencies: + graphql-codegen-core "0.16.1" + graphql-codegen-plugin-helpers "0.16.1" + graphql-codegen-typescript-common "0.16.1" + +graphql-codegen-typescript-react-apollo@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-react-apollo/-/graphql-codegen-typescript-react-apollo-0.16.1.tgz#3be8f429abd864801d0109277fe852fc0d84209e" + integrity sha512-IbDhbO/7OQjayxVp6H1v7chaZcwYKAXWd6b/DLknyl5NlXsKn9WPnxfcHjbOYO5q1ei52GuE2rCbo+U80R4fKg== + dependencies: + graphql-codegen-core "0.16.1" + graphql-codegen-plugin-helpers "0.16.1" + graphql-codegen-typescript-common "0.16.1" + +graphql-codegen-typescript-resolvers@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-resolvers/-/graphql-codegen-typescript-resolvers-0.16.1.tgz#5273871195f485cae69eebf0da86f02c5ba27f81" + integrity sha512-s226V66bIeID6H6o4LPlcv5bscjbg5Qo76YCVv/WRASzJ94g8Hm+2ZG+fIcG2YT8Ge46C1q2JaKftNav0+yqIA== + dependencies: + graphql-codegen-plugin-helpers "0.16.1" + graphql-codegen-typescript-common "0.16.1" + +graphql-codegen-typescript-server@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-server/-/graphql-codegen-typescript-server-0.16.1.tgz#d0ddab6487a9700a4b99f867e19666936300b7d7" + integrity sha512-AWetg8DchXfEfqoN1OrgmIM5R7fo9fZKtBruoVmrjb2FXCUWkb1wAxAdSPraMBXn/pGk8rtfq4G9BJ86KK5HZQ== + dependencies: + graphql-codegen-typescript-common "0.16.1" + graphql-config@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/graphql-config/-/graphql-config-2.0.1.tgz#d34a9bdf1d7360af7b01db9b20260a342ddc7390" @@ -7174,6 +7383,11 @@ lodash.camelcase@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" +lodash.debounce@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" + integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= + lodash.get@^4.4.2: version "4.4.2" resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" @@ -8949,6 +9163,11 @@ preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" +prettier@1.16.3: + version "1.16.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.3.tgz#8c62168453badef702f34b45b6ee899574a6a65d" + integrity sha512-kn/GU6SMRYPxUakNXhpP0EedT/KmaPzr0H5lIsDogrykbaxOpOfAFfk5XA7DZrJyMAv1wlMV3CPcZruGXVVUZw== + prettier@1.16.4, prettier@^1.14.2: version "1.16.4" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717" @@ -9418,7 +9637,7 @@ readable-stream@^3.0.6, readable-stream@^3.1.1: string_decoder "^1.1.1" util-deprecate "^1.0.1" -readdirp@^2.2.1: +readdirp@^2.0.0, readdirp@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.2.1.tgz#0e87622a3325aa33e892285caf8b4e846529a525" dependencies: @@ -10948,7 +11167,7 @@ unzip-response@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" -upath@1.1.0, upath@^1.1.0: +upath@1.1.0, upath@^1.0.5, upath@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.0.tgz#35256597e46a581db4793d0ce47fa9aebfc9fabd"