@manuelp1345/graph-generator 1.2.7 → 1.2.8
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/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() {
|