@constructive-io/cli 5.11.0 → 5.11.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/commands/codegen.js +2 -2
- package/esm/commands/codegen.js +3 -3
- package/package.json +9 -9
package/commands/codegen.js
CHANGED
|
@@ -85,8 +85,8 @@ exports.default = async (argv, _prompter, _options) => {
|
|
|
85
85
|
dryRun: opts.dryRun,
|
|
86
86
|
};
|
|
87
87
|
const result = opts.orm
|
|
88
|
-
? await (0, graphql_codegen_1.
|
|
89
|
-
: await (0, graphql_codegen_1.
|
|
88
|
+
? await (0, graphql_codegen_1.generateOrm)(commandOptions)
|
|
89
|
+
: await (0, graphql_codegen_1.generateReactQuery)(commandOptions);
|
|
90
90
|
printResult(result);
|
|
91
91
|
if (!result.success) {
|
|
92
92
|
process.exit(1);
|
package/esm/commands/codegen.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as fs from 'node:fs';
|
|
2
2
|
import * as path from 'node:path';
|
|
3
3
|
import { buildSchemaSDL } from '@constructive-io/graphql-server';
|
|
4
|
-
import {
|
|
4
|
+
import { generateReactQuery, generateOrm, findConfigFile, } from '@constructive-io/graphql-codegen';
|
|
5
5
|
import { getEnvOptions } from '@constructive-io/graphql-env';
|
|
6
6
|
const usage = `
|
|
7
7
|
Constructive GraphQL Codegen:
|
|
@@ -50,8 +50,8 @@ export default async (argv, _prompter, _options) => {
|
|
|
50
50
|
dryRun: opts.dryRun,
|
|
51
51
|
};
|
|
52
52
|
const result = opts.orm
|
|
53
|
-
? await
|
|
54
|
-
: await
|
|
53
|
+
? await generateOrm(commandOptions)
|
|
54
|
+
: await generateReactQuery(commandOptions);
|
|
55
55
|
printResult(result);
|
|
56
56
|
if (!result.success) {
|
|
57
57
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/cli",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive CLI",
|
|
6
6
|
"main": "index.js",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"ts-node": "^10.9.2"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@constructive-io/graphql-codegen": "^2.
|
|
49
|
-
"@constructive-io/graphql-env": "^2.9.
|
|
50
|
-
"@constructive-io/graphql-explorer": "^2.15.
|
|
51
|
-
"@constructive-io/graphql-server": "^2.19.
|
|
52
|
-
"@constructive-io/knative-job-service": "^0.9.
|
|
48
|
+
"@constructive-io/graphql-codegen": "^2.32.0",
|
|
49
|
+
"@constructive-io/graphql-env": "^2.9.4",
|
|
50
|
+
"@constructive-io/graphql-explorer": "^2.15.4",
|
|
51
|
+
"@constructive-io/graphql-server": "^2.19.11",
|
|
52
|
+
"@constructive-io/knative-job-service": "^0.9.11",
|
|
53
53
|
"@inquirerer/utils": "^3.2.0",
|
|
54
|
-
"@pgpmjs/core": "^4.17.
|
|
54
|
+
"@pgpmjs/core": "^4.17.1",
|
|
55
55
|
"@pgpmjs/logger": "^1.5.0",
|
|
56
56
|
"@pgpmjs/server-utils": "^2.10.0",
|
|
57
57
|
"@pgpmjs/types": "^2.15.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"js-yaml": "^4.1.0",
|
|
61
61
|
"pg-cache": "^1.8.0",
|
|
62
62
|
"pg-env": "^1.3.0",
|
|
63
|
-
"pgpm": "^2.12.
|
|
63
|
+
"pgpm": "^2.12.1",
|
|
64
64
|
"shelljs": "^0.10.0",
|
|
65
65
|
"yanse": "^0.2.0"
|
|
66
66
|
},
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"postgres",
|
|
76
76
|
"graphile"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "39b5c59b01b8ce391dc14daf5a9430ca0ff67574"
|
|
79
79
|
}
|