@apia/cli 4.0.44 → 4.0.46
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/cli/cli.cjs +5 -5
- 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(/^(?<!#) *
|
|
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);
|
|
86
|
+
process.stdout.write(data);
|
|
87
87
|
});
|
|
88
88
|
child.stderr.on('data', data => {
|
|
89
|
-
process.stderr.write(data);
|
|
89
|
+
process.stderr.write(data);
|
|
90
90
|
});
|
|
91
91
|
child.on('exit', code => {
|
|
92
|
-
console.log(
|
|
92
|
+
console.log(`webpack terminó con código ${code}`);
|
|
93
93
|
});
|
|
94
94
|
} else {
|
|
95
|
-
throw new Error("Cannot find
|
|
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.
|
|
3
|
+
"version": "4.0.46",
|
|
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": "
|
|
25
|
+
"gitHead": "4e62bf323a961a7725868bf069566daf21b084f8"
|
|
26
26
|
}
|