@graphcommerce/cli 10.0.0-canary.56 → 10.0.0-canary.57
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 -0
- package/dist/bin/codegen.js +8 -5751
- package/dist/bin/is-monorepo.js +2 -2
- package/dist/bin/mesh.js +4 -5
- package/package.json +8 -7
- package/src/bin/codegen.ts +2 -4
- package/src/bin/is-monorepo.ts +3 -3
- package/src/bin/mesh.ts +3 -3
package/dist/bin/is-monorepo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { spawn } from '
|
|
3
|
-
import path from '
|
|
2
|
+
import { spawn } from 'child_process';
|
|
3
|
+
import path from 'path';
|
|
4
4
|
import { findParentPath } from '@graphcommerce/next-config';
|
|
5
5
|
import { detect } from 'detect-package-manager';
|
|
6
6
|
|
package/dist/bin/mesh.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { promises } from '
|
|
3
|
-
import path from '
|
|
4
|
-
import { exit } from '
|
|
2
|
+
import { promises } from 'fs';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { exit } from '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
7
|
import { defaultImportFn, DefaultLogger, loadYaml, fileURLToPath } from '@graphql-mesh/utils';
|
|
@@ -9,7 +9,6 @@ import dotenv from 'dotenv';
|
|
|
9
9
|
import 'tsx/cjs';
|
|
10
10
|
import 'tsx/esm';
|
|
11
11
|
import yaml from 'yaml';
|
|
12
|
-
import require$$0 from 'path';
|
|
13
12
|
import { cosmiconfig, defaultLoaders } from 'cosmiconfig';
|
|
14
13
|
|
|
15
14
|
function customLoader(ext, importFn = defaultImportFn, initialLoggerPrefix = "\u{1F578}\uFE0F Mesh") {
|
|
@@ -41,7 +40,7 @@ function customLoader(ext, importFn = defaultImportFn, initialLoggerPrefix = "\u
|
|
|
41
40
|
}
|
|
42
41
|
async function findConfig(options) {
|
|
43
42
|
const { configName = "mesh", dir: configDir = "", initialLoggerPrefix } = options || {};
|
|
44
|
-
const dir =
|
|
43
|
+
const dir = path.isAbsolute(configDir) ? configDir : path.join(process.cwd(), configDir);
|
|
45
44
|
const explorer = cosmiconfig(configName, {
|
|
46
45
|
searchPlaces: [
|
|
47
46
|
"package.json",
|
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": "10.0.0-canary.
|
|
5
|
+
"version": "10.0.0-canary.57",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "pkgroll --clean-dist --watch",
|
|
8
8
|
"build": "pkgroll --clean-dist",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"cosmiconfig": "^8.3.6",
|
|
27
27
|
"detect-package-manager": "^3.0.2",
|
|
28
28
|
"dotenv": "16.6.1",
|
|
29
|
+
"fast-glob": "^3.3.3",
|
|
29
30
|
"graphql": "^16.12.0",
|
|
30
31
|
"graphql-codegen-typescript-validation-schema": "^0.18.1",
|
|
31
32
|
"graphql-tag": "^2.12.6",
|
|
@@ -36,12 +37,12 @@
|
|
|
36
37
|
"zod": "^3.25.76"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
|
-
"@graphcommerce/eslint-config-pwa": "^10.0.0-canary.
|
|
40
|
-
"@graphcommerce/graphql-mesh": "^10.0.0-canary.
|
|
41
|
-
"@graphcommerce/hygraph-cli": "^10.0.0-canary.
|
|
42
|
-
"@graphcommerce/next-config": "^10.0.0-canary.
|
|
43
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.
|
|
44
|
-
"@graphcommerce/typescript-config-pwa": "^10.0.0-canary.
|
|
40
|
+
"@graphcommerce/eslint-config-pwa": "^10.0.0-canary.57",
|
|
41
|
+
"@graphcommerce/graphql-mesh": "^10.0.0-canary.57",
|
|
42
|
+
"@graphcommerce/hygraph-cli": "^10.0.0-canary.57",
|
|
43
|
+
"@graphcommerce/next-config": "^10.0.0-canary.57",
|
|
44
|
+
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.57",
|
|
45
|
+
"@graphcommerce/typescript-config-pwa": "^10.0.0-canary.57",
|
|
45
46
|
"@graphql-mesh/cli": "*",
|
|
46
47
|
"@graphql-mesh/types": "*",
|
|
47
48
|
"@graphql-mesh/utils": "*",
|
package/src/bin/codegen.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import fs from 'node:fs/promises'
|
|
5
|
-
import path from 'node:path'
|
|
2
|
+
import fs from 'fs/promises'
|
|
3
|
+
import path from 'path'
|
|
6
4
|
import { packageRoots, resolveDependenciesSync } from '@graphcommerce/next-config'
|
|
7
5
|
import { cliError, loadCodegenConfig, runCli } from '@graphql-codegen/cli'
|
|
8
6
|
import type { Types } from '@graphql-codegen/plugin-helpers'
|
package/src/bin/is-monorepo.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import path from '
|
|
2
|
+
import { spawn } from 'child_process'
|
|
3
|
+
import type { ChildProcess } from 'child_process'
|
|
4
|
+
import path from 'path'
|
|
5
5
|
import { findParentPath } from '@graphcommerce/next-config'
|
|
6
6
|
import { detect } from 'detect-package-manager'
|
|
7
7
|
|
package/src/bin/mesh.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
2
|
-
import { promises as fs } from '
|
|
3
|
-
import path from '
|
|
4
|
-
import { exit } from '
|
|
2
|
+
import { promises as fs } from 'fs'
|
|
3
|
+
import path from 'path'
|
|
4
|
+
import { exit } from 'process'
|
|
5
5
|
import type { meshConfig as meshConfigBase } from '@graphcommerce/graphql-mesh/meshConfig'
|
|
6
6
|
import {
|
|
7
7
|
loadConfig,
|