@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 +2 -10
- package/dist/bin/codegen.js +3 -3
- package/dist/bin/mesh.js +2 -2
- package/package.json +7 -7
- package/src/bin/codegen.ts +2 -2
- package/src/utils/findConfig.ts +2 -2
package/CHANGELOG.md
CHANGED
package/dist/bin/codegen.js
CHANGED
|
@@ -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
|
|
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
|
|
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.
|
|
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.
|
|
33
|
-
"@graphcommerce/graphql-mesh": "^9.0.
|
|
34
|
-
"@graphcommerce/hygraph-cli": "^9.0.
|
|
35
|
-
"@graphcommerce/next-config": "^9.0.
|
|
36
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.
|
|
37
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.
|
|
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": "*",
|
package/src/bin/codegen.ts
CHANGED
|
@@ -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
|
|
package/src/utils/findConfig.ts
CHANGED
|
@@ -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 {
|
|
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',
|