Skip to content

Commit

Permalink
Merge pull request #2365 from graphcommerce-org/fix/graphqls-includes
Browse files Browse the repository at this point in the history
The mesh would always include all graphqls files even though they are…
  • Loading branch information
paales authored Oct 28, 2024
2 parents 159d864 + ee32793 commit 2a581bd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/young-dogs-think.md
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion packages/cli/dist/bin/mesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion packages/cli/src/bin/mesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 !== '.')
Expand Down

0 comments on commit 2a581bd

Please sign in to comment.