@graphcommerce/cli 4.31.0-canary.4 → 4.31.0-canary.6
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 +8 -0
- package/bin/codegen.ts +3 -0
- package/dist/bin/codegen.js +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @graphcommerce/cli
|
|
2
2
|
|
|
3
|
+
## 4.31.0-canary.6
|
|
4
|
+
|
|
5
|
+
## 4.31.0-canary.5
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#1738](https://github.com/graphcommerce-org/graphcommerce/pull/1738) [`bd3a30438`](https://github.com/graphcommerce-org/graphcommerce/commit/bd3a30438cf6b69cd37a191406c8190a20e572cc) - Created directive @env(if: String!) on FRAGMENT_DEFINITION to conditionally include a fragment ([@paales](https://github.com/paales))
|
|
10
|
+
|
|
3
11
|
## 4.31.0-canary.4
|
|
4
12
|
|
|
5
13
|
## 4.31.0-canary.3
|
package/bin/codegen.ts
CHANGED
|
@@ -5,11 +5,14 @@ import path from 'node:path'
|
|
|
5
5
|
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
|
+
import dotenv from 'dotenv'
|
|
8
9
|
import rimraf from 'rimraf'
|
|
9
10
|
import yaml from 'yaml'
|
|
10
11
|
|
|
11
12
|
const [, , cmd] = process.argv
|
|
12
13
|
|
|
14
|
+
dotenv.config()
|
|
15
|
+
|
|
13
16
|
const root = process.cwd()
|
|
14
17
|
const configLocation = path.join(root, `._tmp_codegen.yml`)
|
|
15
18
|
|
package/dist/bin/codegen.js
CHANGED
|
@@ -9,9 +9,11 @@ const promises_1 = __importDefault(require("node:fs/promises"));
|
|
|
9
9
|
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
|
+
const dotenv_1 = __importDefault(require("dotenv"));
|
|
12
13
|
const rimraf_1 = __importDefault(require("rimraf"));
|
|
13
14
|
const yaml_1 = __importDefault(require("yaml"));
|
|
14
15
|
const [, , cmd] = process.argv;
|
|
16
|
+
dotenv_1.default.config();
|
|
15
17
|
const root = process.cwd();
|
|
16
18
|
const configLocation = node_path_1.default.join(root, `._tmp_codegen.yml`);
|
|
17
19
|
async function cleanup() {
|
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": "4.31.0-canary.
|
|
5
|
+
"version": "4.31.0-canary.6",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"graphcommerce": "dist/bin/graphcommerce.js"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@graphcommerce/next-config": "4.31.0-canary.
|
|
25
|
+
"@graphcommerce/next-config": "4.31.0-canary.6",
|
|
26
26
|
"@graphql-codegen/cli": "2.11.8",
|
|
27
27
|
"@graphql-mesh/cli": "0.76.2",
|
|
28
28
|
"@graphql-mesh/types": "0.80.2",
|