From ee32793c5e8e7233b4452219e148ebb85600a652 Mon Sep 17 00:00:00 2001 From: Giovanni Schroevers Date: Tue, 3 Sep 2024 16:58:34 +0200 Subject: [PATCH] The mesh would always include all graphqls files even though they aren't necessary for Magento 2.4.7 --- .changeset/young-dogs-think.md | 5 +++++ packages/cli/dist/bin/mesh.js | 5 ++++- packages/cli/src/bin/mesh.ts | 5 ++++- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .changeset/young-dogs-think.md diff --git a/.changeset/young-dogs-think.md b/.changeset/young-dogs-think.md new file mode 100644 index 0000000000..988b86491f --- /dev/null +++ b/.changeset/young-dogs-think.md @@ -0,0 +1,5 @@ +--- +'@graphcommerce/cli': patch +--- + +The mesh would always include all graphqls files even though they aren't necessary for Magento 2.4.7 diff --git a/packages/cli/dist/bin/mesh.js b/packages/cli/dist/bin/mesh.js index 81c5a17403..d5f16b0f44 100755 --- a/packages/cli/dist/bin/mesh.js +++ b/packages/cli/dist/bin/mesh.js @@ -118,7 +118,10 @@ const main = async () => { return additionalTypeDef; }); // Scan the current working directory to also read all graphqls files. - conf.additionalTypeDefs.push('**/*.graphqls'); + conf.additionalTypeDefs.push('graphql/**/*.graphqls'); + conf.additionalTypeDefs.push('components/**/*.graphqls'); + conf.additionalTypeDefs.push('lib/**/*.graphqls'); + conf.additionalTypeDefs.push('app/**/*.graphqls'); const deps = (0, next_config_1.resolveDependenciesSync)(); const packages = [...deps.values()].filter((p) => p !== '.'); const mV = graphCommerce.magentoVersion ?? 246; diff --git a/packages/cli/src/bin/mesh.ts b/packages/cli/src/bin/mesh.ts index 99b1a7b023..8198e2e714 100755 --- a/packages/cli/src/bin/mesh.ts +++ b/packages/cli/src/bin/mesh.ts @@ -117,7 +117,10 @@ const main = async () => { }) // Scan the current working directory to also read all graphqls files. - conf.additionalTypeDefs.push('**/*.graphqls') + conf.additionalTypeDefs.push('graphql/**/*.graphqls') + conf.additionalTypeDefs.push('components/**/*.graphqls') + conf.additionalTypeDefs.push('lib/**/*.graphqls') + conf.additionalTypeDefs.push('app/**/*.graphqls') const deps = resolveDependenciesSync() const packages = [...deps.values()].filter((p) => p !== '.')