@graphcommerce/cli 6.2.0-canary.40 → 6.2.0-canary.42

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
+ ## 6.2.0-canary.42
4
+
5
+ ## 6.2.0-canary.41
6
+
7
+ ### Patch Changes
8
+
9
+ - [#1960](https://github.com/graphcommerce-org/graphcommerce/pull/1960) [`f78caf5a8`](https://github.com/graphcommerce-org/graphcommerce/commit/f78caf5a83683f1ae4b901fb94bd22d50943fa2f) - Updated packages @apollo/client, react-hook-form, @emotion/\*, @lingui/\*, @mui/\* and various others. ([@paales](https://github.com/paales))
10
+
11
+ - [#1960](https://github.com/graphcommerce-org/graphcommerce/pull/1960) [`86e14569b`](https://github.com/graphcommerce-org/graphcommerce/commit/86e14569b1f68f73be7f93b614e36b382c5debff) - Updated to the latest release of GraphQL codegen and solve compatibility issues with our own generator ([@paales](https://github.com/paales))
12
+
3
13
  ## 6.2.0-canary.40
4
14
 
5
15
  ## 6.2.0-canary.39
@@ -10,7 +10,7 @@ const node_path_1 = __importDefault(require("node:path"));
10
10
  const next_config_1 = require("@graphcommerce/next-config");
11
11
  const cli_1 = require("@graphql-codegen/cli");
12
12
  const dotenv_1 = __importDefault(require("dotenv"));
13
- const rimraf_1 = __importDefault(require("rimraf"));
13
+ const rimraf_1 = require("rimraf");
14
14
  const yaml_1 = __importDefault(require("yaml"));
15
15
  const [, , cmd] = process.argv;
16
16
  dotenv_1.default.config();
@@ -57,7 +57,7 @@ async function main() {
57
57
  });
58
58
  const isWatching = process.argv.includes('--watch') || process.argv.includes('-w');
59
59
  if (!isWatching && extension)
60
- (0, rimraf_1.default)(node_path_1.default.join(root, `**/*${extension}`), console.error);
60
+ await (0, rimraf_1.rimraf)(node_path_1.default.join(root, `**/*${extension}`));
61
61
  // - Prepend the all targets with ../../ if we're running in a monorepo setup.
62
62
  // - Append all the Graphcommerce packages to the configuration
63
63
  conf.config.generates = Object.fromEntries(generates.map(([generateTarget, generateConf]) => [
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": "6.2.0-canary.40",
5
+ "version": "6.2.0-canary.42",
6
6
  "author": "",
7
7
  "license": "MIT",
8
8
  "scripts": {
@@ -24,27 +24,27 @@
24
24
  "graphcommerce": "dist/bin/graphcommerce.js"
25
25
  },
26
26
  "dependencies": {
27
- "@graphcommerce/next-config": "6.2.0-canary.40",
28
- "@graphcommerce/hygraph-cli": "6.2.0-canary.40",
29
- "@graphql-codegen/cli": "3.2.2",
27
+ "@graphcommerce/hygraph-cli": "6.2.0-canary.42",
28
+ "@graphcommerce/next-config": "6.2.0-canary.42",
29
+ "@graphql-codegen/cli": "4.0.1",
30
30
  "@graphql-mesh/cli": "latest",
31
31
  "@graphql-mesh/types": "latest",
32
32
  "@graphql-mesh/utils": "latest",
33
- "cosmiconfig": "^8.0.0",
33
+ "cosmiconfig": "^8.2.0",
34
34
  "detect-package-manager": "^2.0.1",
35
35
  "graphql": "16.6.0",
36
- "graphql-codegen-typescript-validation-schema": "^0.7.1",
36
+ "graphql-codegen-typescript-validation-schema": "^0.11.1",
37
37
  "graphql-tag": "^2.12.6",
38
- "rimraf": "^3.0.2",
38
+ "rimraf": "^5.0.1",
39
39
  "ts-node": "^10.9.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@graphcommerce/eslint-config-pwa": "6.2.0-canary.40",
43
- "@graphcommerce/prettier-config-pwa": "6.2.0-canary.40",
44
- "@graphcommerce/typescript-config-pwa": "6.2.0-canary.40",
45
- "@types/rimraf": "^3.0.2",
42
+ "@graphcommerce/eslint-config-pwa": "6.2.0-canary.42",
43
+ "@graphcommerce/prettier-config-pwa": "6.2.0-canary.42",
44
+ "@graphcommerce/typescript-config-pwa": "6.2.0-canary.42",
45
+ "@types/rimraf": "^4.0.5",
46
46
  "react": "^18.2.0",
47
- "typescript": "4.9.5"
47
+ "typescript": "5.1.3"
48
48
  },
49
49
  "sideEffects": false,
50
50
  "prettier": "@graphcommerce/prettier-config-pwa",
@@ -6,7 +6,7 @@ import { resolveDependenciesSync } from '@graphcommerce/next-config'
6
6
  import { runCli, cliError, loadCodegenConfig } from '@graphql-codegen/cli'
7
7
  import { Types } from '@graphql-codegen/plugin-helpers'
8
8
  import dotenv from 'dotenv'
9
- import rimraf from 'rimraf'
9
+ import { rimraf } from 'rimraf'
10
10
  import yaml from 'yaml'
11
11
 
12
12
  const [, , cmd] = process.argv
@@ -65,7 +65,7 @@ async function main() {
65
65
  })
66
66
 
67
67
  const isWatching = process.argv.includes('--watch') || process.argv.includes('-w')
68
- if (!isWatching && extension) rimraf(path.join(root, `**/*${extension}`), console.error)
68
+ if (!isWatching && extension) await rimraf(path.join(root, `**/*${extension}`))
69
69
 
70
70
  // - Prepend the all targets with ../../ if we're running in a monorepo setup.
71
71
  // - Append all the Graphcommerce packages to the configuration