@graphcommerce/cli 9.0.3 → 9.0.4-canary.1

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,16 +1,8 @@
1
1
  # @graphcommerce/cli
2
2
 
3
- ## 9.0.3
3
+ ## 9.0.4-canary.1
4
4
 
5
- ## 9.0.3-canary.0
6
-
7
- ## 9.0.2
8
-
9
- ## 9.0.2-canary.0
10
-
11
- ## 9.0.1
12
-
13
- ## 9.0.1-canary.1
5
+ ## 9.0.4-canary.0
14
6
 
15
7
  ## 9.0.0
16
8
 
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
+ import fs from 'node:fs/promises';
3
+ import path from 'node:path';
2
4
  import { resolveDependenciesSync, packageRoots } from '@graphcommerce/next-config';
3
5
  import { cliError, loadCodegenConfig, runCli } from '@graphql-codegen/cli';
4
6
  import dotenv from 'dotenv';
5
- import fs from 'node:fs/promises';
6
- import path from 'node:path';
7
7
  import { rimraf } from 'rimraf';
8
8
  import yaml from 'yaml';
9
9
 
@@ -19,7 +19,7 @@ async function cleanup() {
19
19
  });
20
20
  } catch (e) {
21
21
  }
22
- return void 0;
22
+ return undefined;
23
23
  }
24
24
  function appendDocumentLocations(conf, packages) {
25
25
  const documents = Array.isArray(conf.documents) ? conf.documents : [conf.documents];
package/dist/bin/mesh.js CHANGED
@@ -9,8 +9,8 @@ import dotenv from 'dotenv';
9
9
  import 'tsx/cjs';
10
10
  import 'tsx/esm';
11
11
  import yaml from 'yaml';
12
- import { cosmiconfig, defaultLoaders } from 'cosmiconfig';
13
12
  import path from 'path';
13
+ import { cosmiconfig, defaultLoaders } from 'cosmiconfig';
14
14
 
15
15
  function customLoader(ext, importFn = defaultImportFn, initialLoggerPrefix = "\u{1F578}\uFE0F Mesh") {
16
16
  const logger = new DefaultLogger(initialLoggerPrefix).child("config");
@@ -98,7 +98,7 @@ async function cleanup() {
98
98
  });
99
99
  } catch (e) {
100
100
  }
101
- return void 0;
101
+ return undefined;
102
102
  }
103
103
  const main = async () => {
104
104
  const baseConf = await findConfig({});
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": "9.0.3",
5
+ "version": "9.0.4-canary.1",
6
6
  "scripts": {
7
7
  "dev": "pkgroll --watch",
8
8
  "build": "pkgroll",
@@ -29,12 +29,12 @@
29
29
  "yaml": "2.6.1"
30
30
  },
31
31
  "peerDependencies": {
32
- "@graphcommerce/eslint-config-pwa": "^9.0.3",
33
- "@graphcommerce/graphql-mesh": "^9.0.3",
34
- "@graphcommerce/hygraph-cli": "^9.0.3",
35
- "@graphcommerce/next-config": "^9.0.3",
36
- "@graphcommerce/prettier-config-pwa": "^9.0.3",
37
- "@graphcommerce/typescript-config-pwa": "^9.0.3",
32
+ "@graphcommerce/eslint-config-pwa": "^9.0.4-canary.1",
33
+ "@graphcommerce/graphql-mesh": "^9.0.4-canary.1",
34
+ "@graphcommerce/hygraph-cli": "^9.0.4-canary.1",
35
+ "@graphcommerce/next-config": "^9.0.4-canary.1",
36
+ "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.1",
37
+ "@graphcommerce/typescript-config-pwa": "^9.0.4-canary.1",
38
38
  "@graphql-mesh/cli": "*",
39
39
  "@graphql-mesh/types": "*",
40
40
  "@graphql-mesh/utils": "*",
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /* eslint-disable import/no-extraneous-dependencies */
4
+ import fs from 'node:fs/promises'
5
+ import path from 'node:path'
4
6
  import { packageRoots, resolveDependenciesSync } from '@graphcommerce/next-config'
5
7
  import { cliError, loadCodegenConfig, runCli } from '@graphql-codegen/cli'
6
8
  import type { Types } from '@graphql-codegen/plugin-helpers'
7
9
  import dotenv from 'dotenv'
8
- import fs from 'node:fs/promises'
9
- import path from 'node:path'
10
10
  import { rimraf } from 'rimraf'
11
11
  import yaml from 'yaml'
12
12
 
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
+ import path from 'path'
2
3
  import type { ConfigProcessOptions } from '@graphql-mesh/config'
3
- import { DefaultLogger, defaultImportFn, loadYaml } from '@graphql-mesh/utils'
4
+ import { defaultImportFn, DefaultLogger, loadYaml } from '@graphql-mesh/utils'
4
5
  import { cosmiconfig, defaultLoaders } from 'cosmiconfig'
5
- import path from 'path'
6
6
 
7
7
  function customLoader(
8
8
  ext: 'json' | 'yaml' | 'js',