@manuelp1345/graph-generator 1.2.8 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cli.js CHANGED
@@ -20,7 +20,7 @@ const execPromise = promisify(exec);
20
20
  function runCodegen() {
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
22
  try {
23
- const { stdout, stderr } = yield execPromise("graphql-codegen --config src/codegen.ts");
23
+ const { stdout, stderr } = yield execPromise("npx graphql-codegen --config src/codegen.ts");
24
24
  console.log(stdout);
25
25
  if (stderr) {
26
26
  console.error(stderr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manuelp1345/graph-generator",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "generador de schema y types de graphql",
5
5
  "scripts": {
6
6
  "codegen": "graphql-codegen --config src/codegen.ts",
@@ -8,6 +8,8 @@
8
8
  "build": "tsc",
9
9
  "prepublishOnly": "npm run codegen && npm run build"
10
10
  },
11
+ "main": "dist/index.js",
12
+ "type": "module",
11
13
  "keywords": [],
12
14
  "author": "manuelDev",
13
15
  "license": "ISC",
package/src/cli.ts CHANGED
@@ -14,7 +14,7 @@ const execPromise = promisify(exec);
14
14
  async function runCodegen() {
15
15
  try {
16
16
  const { stdout, stderr } = await execPromise(
17
- "graphql-codegen --config src/codegen.ts"
17
+ "npx graphql-codegen --config src/codegen.ts"
18
18
  );
19
19
  console.log(stdout);
20
20
  if (stderr) {