@manuelp1345/graph-generator 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.js +7 -0
- package/package.json +1 -1
- package/src/cli.ts +8 -0
package/dist/cli.js
CHANGED
@@ -9,6 +9,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
9
9
|
};
|
10
10
|
import { exec } from "child_process";
|
11
11
|
import { promisify } from "util";
|
12
|
+
const command = process.argv[2]; // Esto puede ser el comando 'codegen'
|
13
|
+
if (command === "codegen") {
|
14
|
+
runCodegen(); // Ejecuta la función de generación del esquema
|
15
|
+
}
|
16
|
+
else {
|
17
|
+
console.log("Comando desconocido");
|
18
|
+
}
|
12
19
|
const execPromise = promisify(exec);
|
13
20
|
function runCodegen() {
|
14
21
|
return __awaiter(this, void 0, void 0, function* () {
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
import { exec } from "child_process";
|
2
2
|
import { promisify } from "util";
|
3
3
|
|
4
|
+
const command = process.argv[2]; // Esto puede ser el comando 'codegen'
|
5
|
+
|
6
|
+
if (command === "codegen") {
|
7
|
+
runCodegen(); // Ejecuta la función de generación del esquema
|
8
|
+
} else {
|
9
|
+
console.log("Comando desconocido");
|
10
|
+
}
|
11
|
+
|
4
12
|
const execPromise = promisify(exec);
|
5
13
|
|
6
14
|
async function runCodegen() {
|