@manuelp1345/graph-generator 1.2.12 → 1.2.14

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 CHANGED
@@ -10,14 +10,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  import { exec } from "child_process";
12
12
  import { promisify } from "util";
13
- import path from "path";
14
13
  // Promisify exec to use async/await
15
14
  const execPromise = promisify(exec);
16
15
  // Función para ejecutar el comando de generación de código
17
16
  function runCodegen() {
18
17
  return __awaiter(this, void 0, void 0, function* () {
19
18
  try {
20
- const { stdout, stderr } = yield execPromise(`graphql-codegen --config ${path.join(__dirname, "../dist/codegen.js")} `);
19
+ const { stdout, stderr } = yield execPromise(`graphql-codegen --config ./codegen.ts `);
21
20
  console.log("stdout:", stdout);
22
21
  if (stderr) {
23
22
  console.error("stderr:", stderr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manuelp1345/graph-generator",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "description": "generador de schema y types de graphql",
5
5
  "scripts": {
6
6
  "codegen": "graphql-codegen --config src/codegen.ts",
package/src/cli.ts CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { exec } from "child_process";
4
4
  import { promisify } from "util";
5
- import path from "path";
6
5
 
7
6
  // Promisify exec to use async/await
8
7
  const execPromise = promisify(exec);
@@ -11,7 +10,7 @@ const execPromise = promisify(exec);
11
10
  async function runCodegen() {
12
11
  try {
13
12
  const { stdout, stderr } = await execPromise(
14
- `graphql-codegen --config ${path.join(__dirname, "../dist/codegen.js")} `
13
+ `graphql-codegen --config ./codegen.ts `
15
14
  );
16
15
 
17
16
  console.log("stdout:", stdout);