@graphcommerce/cli 4.30.1 → 4.30.2

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,11 @@
1
1
  # @graphcommerce/cli
2
2
 
3
+ ## 4.30.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1726](https://github.com/graphcommerce-org/graphcommerce/pull/1726) [`6dde81d8c`](https://github.com/graphcommerce-org/graphcommerce/commit/6dde81d8c04730847c4c171cfac6ef0cf10d9929) Thanks [@paales](https://github.com/paales)! - When starting the dev server it would delete all .gql.ts files causing an error when starting
8
+
3
9
  ## 4.30.1
4
10
 
5
11
  ## 4.30.0
package/bin/codegen.ts CHANGED
@@ -60,7 +60,9 @@ async function main() {
60
60
  if (Array.isArray(gen)) return
61
61
  if (gen.presetConfig?.extension) extension = gen.presetConfig.extension
62
62
  })
63
- if (extension) rimraf(path.join(root, `**/*${extension}`), console.error)
63
+
64
+ const isWatching = process.argv.includes('--watch') || process.argv.includes('-w')
65
+ if (!isWatching && extension) rimraf(path.join(root, `**/*${extension}`), console.error)
64
66
 
65
67
  // - Prepend the all targets with ../../ if we're running in a monorepo setup.
66
68
  // - Append all the Graphcommerce packages to the configuration
@@ -53,7 +53,8 @@ async function main() {
53
53
  if (gen.presetConfig?.extension)
54
54
  extension = gen.presetConfig.extension;
55
55
  });
56
- if (extension)
56
+ const isWatching = process.argv.includes('--watch') || process.argv.includes('-w');
57
+ if (!isWatching && extension)
57
58
  (0, rimraf_1.default)(node_path_1.default.join(root, `**/*${extension}`), console.error);
58
59
  // - Prepend the all targets with ../../ if we're running in a monorepo setup.
59
60
  // - Append all the Graphcommerce packages to the configuration
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": "4.30.1",
5
+ "version": "4.30.2",
6
6
  "author": "",
7
7
  "license": "MIT",
8
8
  "scripts": {
@@ -22,7 +22,7 @@
22
22
  "graphcommerce": "dist/bin/graphcommerce.js"
23
23
  },
24
24
  "dependencies": {
25
- "@graphcommerce/next-config": "4.30.1",
25
+ "@graphcommerce/next-config": "4.30.2",
26
26
  "@graphql-codegen/cli": "2.11.8",
27
27
  "@graphql-mesh/cli": "0.76.2",
28
28
  "@graphql-mesh/types": "0.80.2",