@apia/cli 4.0.45 → 5.0.0

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 +3 -3
  2. package/package.json +2 -2
package/cli/cli.cjs CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const { program, Command } = require('commander');
4
4
  const { spawn } = require('child_process');
@@ -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_4004 *= *([^\n]+)/m);
60
+ const outDir = envFile.content.match(/^(?<!#) *APIA_4005 *= *([^\n]+)/m);
61
61
  if (outDir?.[1]) {
62
62
  const actualOutput = path.resolve(outDir[1], 'react', 'customComponents', parsedName)
63
63
 
@@ -92,7 +92,7 @@ compile.command('component')
92
92
  console.log(`webpack terminó con código ${code}`);
93
93
  });
94
94
  } else {
95
- throw new Error("Cannot find APIA_4004 in " + envFile.fileName);
95
+ throw new Error("Cannot find APIA_4005 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.45",
3
+ "version": "5.0.0",
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": "1b035d1b515ceb49207373a4fafcf0ff465bc439"
25
+ "gitHead": "985b675635fb9d3dc5e26a90a6d9898864418b84"
26
26
  }