@apia/cli 4.0.44 → 4.0.45

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.
Files changed (2) hide show
  1. package/cli/cli.cjs +5 -5
  2. package/package.json +2 -2
package/cli/cli.cjs CHANGED
@@ -57,7 +57,7 @@ compile.command('component')
57
57
 
58
58
  let envFile = findFileInAncestors('.env');
59
59
  if (envFile !== undefined) {
60
- const outDir = envFile.content.match(/^(?<!#) *APIA_4005 *= *([^\n]+)/m);
60
+ const outDir = envFile.content.match(/^(?<!#) *APIA_4004 *= *([^\n]+)/m);
61
61
  if (outDir?.[1]) {
62
62
  const actualOutput = path.resolve(outDir[1], 'react', 'customComponents', parsedName)
63
63
 
@@ -83,16 +83,16 @@ compile.command('component')
83
83
 
84
84
  child.stdout.setEncoding('utf8');
85
85
  child.stdout.on('data', data => {
86
- process.stdout.write(data); // muestra al instante
86
+ process.stdout.write(data);
87
87
  });
88
88
  child.stderr.on('data', data => {
89
- process.stderr.write(data); // idem para errores
89
+ process.stderr.write(data);
90
90
  });
91
91
  child.on('exit', code => {
92
- console.log(`⚙️ webpack terminó con código ${code}`);
92
+ console.log(`webpack terminó con código ${code}`);
93
93
  });
94
94
  } else {
95
- throw new Error("Cannot find APIA_4005 in " + envFile.fileName);
95
+ throw new Error("Cannot find APIA_4004 in " + envFile.fileName);
96
96
  }
97
97
  } else {
98
98
  throw new Error("Cannot find .env file");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apia/cli",
3
- "version": "4.0.44",
3
+ "version": "4.0.45",
4
4
  "sideEffects": true,
5
5
  "author": "Alexis Leite <alexisleite@live.com>",
6
6
  "bin": {
@@ -22,5 +22,5 @@
22
22
  "access": "public",
23
23
  "registry": "https://registry.npmjs.org/"
24
24
  },
25
- "gitHead": "0822e3a7f4a7fa49b47087e8097caab678d36ef6"
25
+ "gitHead": "1b035d1b515ceb49207373a4fafcf0ff465bc439"
26
26
  }