@graphcommerce/cli 10.0.0-canary.67 → 10.0.0-canary.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @graphcommerce/cli
2
2
 
3
+ ## 10.0.0-canary.72
4
+
5
+ ## 10.0.0-canary.71
6
+
7
+ ## 10.0.0-canary.70
8
+
9
+ ## 10.0.0-canary.69
10
+
11
+ ## 10.0.0-canary.68
12
+
3
13
  ## 10.0.0-canary.67
4
14
 
5
15
  ## 10.0.0-canary.66
@@ -4,7 +4,6 @@ import path from 'path';
4
4
  import { resolveDependenciesSync, packageRoots } from '@graphcommerce/next-config';
5
5
  import { cliError, loadCodegenConfig, runCli } from '@graphql-codegen/cli';
6
6
  import dotenv from 'dotenv';
7
- import glob from 'fast-glob';
8
7
  import { rimraf } from 'rimraf';
9
8
  import yaml from 'yaml';
10
9
 
@@ -24,12 +23,7 @@ async function cleanup() {
24
23
  }
25
24
  function appendDocumentLocations(conf, packages) {
26
25
  const documents = Array.isArray(conf.documents) ? conf.documents : [conf.documents];
27
- const packagePatterns = packages.map((p) => `${p}/**/*.graphql`);
28
- const resolvedFiles = glob.sync(packagePatterns, {
29
- ignore: ["**/node_modules/**"],
30
- followSymbolicLinks: false
31
- });
32
- documents.push(...resolvedFiles);
26
+ documents.push(...packages.map((p) => `${p}/**/*.graphql`));
33
27
  return conf;
34
28
  }
35
29
  async function main() {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/cli",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "10.0.0-canary.67",
5
+ "version": "10.0.0-canary.72",
6
6
  "scripts": {
7
7
  "dev": "pkgroll --clean-dist --watch",
8
8
  "build": "pkgroll --clean-dist",
@@ -26,7 +26,6 @@
26
26
  "cosmiconfig": "^8.3.6",
27
27
  "detect-package-manager": "^3.0.2",
28
28
  "dotenv": "16.6.1",
29
- "fast-glob": "^3.3.3",
30
29
  "graphql": "^16.12.0",
31
30
  "graphql-codegen-typescript-validation-schema": "^0.18.1",
32
31
  "graphql-tag": "^2.12.6",
@@ -37,12 +36,12 @@
37
36
  "zod": "^3.25.76"
38
37
  },
39
38
  "peerDependencies": {
40
- "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.67",
41
- "@graphcommerce/graphql-mesh": "^10.0.0-canary.67",
42
- "@graphcommerce/hygraph-cli": "^10.0.0-canary.67",
43
- "@graphcommerce/next-config": "^10.0.0-canary.67",
44
- "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.67",
45
- "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.67",
39
+ "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.72",
40
+ "@graphcommerce/graphql-mesh": "^10.0.0-canary.72",
41
+ "@graphcommerce/hygraph-cli": "^10.0.0-canary.72",
42
+ "@graphcommerce/next-config": "^10.0.0-canary.72",
43
+ "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.72",
44
+ "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.72",
46
45
  "@graphql-mesh/cli": "*",
47
46
  "@graphql-mesh/types": "*",
48
47
  "@graphql-mesh/utils": "*",
@@ -5,7 +5,6 @@ import { packageRoots, resolveDependenciesSync } from '@graphcommerce/next-confi
5
5
  import { cliError, loadCodegenConfig, runCli } from '@graphql-codegen/cli'
6
6
  import type { Types } from '@graphql-codegen/plugin-helpers'
7
7
  import dotenv from 'dotenv'
8
- import glob from 'fast-glob'
9
8
  import { rimraf } from 'rimraf'
10
9
  import yaml from 'yaml'
11
10
 
@@ -33,14 +32,7 @@ function appendDocumentLocations(
33
32
  packages: string[],
34
33
  ): Types.ConfiguredOutput {
35
34
  const documents = Array.isArray(conf.documents) ? conf.documents : [conf.documents]
36
-
37
- // Pre-resolve GraphQL files to avoid graphql-codegen following symlinks into node_modules
38
- const packagePatterns = packages.map((p) => `${p}/**/*.graphql`)
39
- const resolvedFiles = glob.sync(packagePatterns, {
40
- ignore: ['**/node_modules/**'],
41
- followSymbolicLinks: false,
42
- })
43
- documents.push(...resolvedFiles)
35
+ documents.push(...packages.map((p) => `${p}/**/*.graphql`))
44
36
 
45
37
  return conf
46
38
  }