@graphcommerce/cli 9.1.0-canary.15 → 9.1.0-canary.17
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 +4 -0
- package/dist/bin/codegen.js +1 -1
- package/dist/bin/mesh.js +3 -3
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/dist/bin/codegen.js
CHANGED
package/dist/bin/mesh.js
CHANGED
|
@@ -4,7 +4,7 @@ import path$1 from 'node:path';
|
|
|
4
4
|
import { exit } from 'node:process';
|
|
5
5
|
import { loadConfig, resolveDependenciesSync, sig, packageRoots, replaceConfigInString } from '@graphcommerce/next-config';
|
|
6
6
|
import { DEFAULT_CLI_PARAMS, graphqlMesh } from '@graphql-mesh/cli';
|
|
7
|
-
import {
|
|
7
|
+
import { defaultImportFn, DefaultLogger, loadYaml, fileURLToPath } from '@graphql-mesh/utils';
|
|
8
8
|
import dotenv from 'dotenv';
|
|
9
9
|
import 'tsx/cjs';
|
|
10
10
|
import 'tsx/esm';
|
|
@@ -40,7 +40,7 @@ function customLoader(ext, importFn = defaultImportFn, initialLoggerPrefix = "\u
|
|
|
40
40
|
return loader;
|
|
41
41
|
}
|
|
42
42
|
async function findConfig(options) {
|
|
43
|
-
const { configName = "mesh", dir: configDir = "", initialLoggerPrefix } = options;
|
|
43
|
+
const { configName = "mesh", dir: configDir = "", initialLoggerPrefix } = options || {};
|
|
44
44
|
const dir = path.isAbsolute(configDir) ? configDir : path.join(process.cwd(), configDir);
|
|
45
45
|
const explorer = cosmiconfig(configName, {
|
|
46
46
|
searchPlaces: [
|
|
@@ -98,7 +98,7 @@ async function cleanup() {
|
|
|
98
98
|
});
|
|
99
99
|
} catch (e) {
|
|
100
100
|
}
|
|
101
|
-
return
|
|
101
|
+
return void 0;
|
|
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.1.0-canary.
|
|
5
|
+
"version": "9.1.0-canary.17",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "pkgroll --clean-dist --watch",
|
|
8
8
|
"build": "pkgroll --clean-dist",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"yaml": "2.6.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.
|
|
39
|
-
"@graphcommerce/graphql-mesh": "^9.1.0-canary.
|
|
40
|
-
"@graphcommerce/hygraph-cli": "^9.1.0-canary.
|
|
41
|
-
"@graphcommerce/next-config": "^9.1.0-canary.
|
|
42
|
-
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.
|
|
43
|
-
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.
|
|
38
|
+
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.17",
|
|
39
|
+
"@graphcommerce/graphql-mesh": "^9.1.0-canary.17",
|
|
40
|
+
"@graphcommerce/hygraph-cli": "^9.1.0-canary.17",
|
|
41
|
+
"@graphcommerce/next-config": "^9.1.0-canary.17",
|
|
42
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.17",
|
|
43
|
+
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.17",
|
|
44
44
|
"@graphql-mesh/cli": "*",
|
|
45
45
|
"@graphql-mesh/types": "*",
|
|
46
46
|
"@graphql-mesh/utils": "*",
|