@apia/cli 4.0.43 → 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.
- package/cli/cli.cjs +17 -7
- package/package.json +11 -7
package/cli/cli.cjs
CHANGED
|
@@ -69,18 +69,28 @@ compile.command('component')
|
|
|
69
69
|
- Output: ${actualOutput}
|
|
70
70
|
- Webpack config: ${webpackConfig}`);
|
|
71
71
|
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
npx,
|
|
72
|
+
const child = spawn(
|
|
73
|
+
'npx',
|
|
75
74
|
[
|
|
76
75
|
'webpack',
|
|
77
|
-
'--config', webpackConfig
|
|
78
|
-
'--entry', targetComponentIndex
|
|
79
|
-
'--output-path', actualOutput
|
|
76
|
+
'--config', `"${webpackConfig}"`,
|
|
77
|
+
'--entry', `"${targetComponentIndex}"`,
|
|
78
|
+
'--output-path', `"${actualOutput}"`,
|
|
80
79
|
'--output-filename', 'index.js',
|
|
81
80
|
...(watch ? ['--mode', 'development', '--watch'] : [])
|
|
82
81
|
],
|
|
83
|
-
{
|
|
82
|
+
{ shell: true, })
|
|
83
|
+
|
|
84
|
+
child.stdout.setEncoding('utf8');
|
|
85
|
+
child.stdout.on('data', data => {
|
|
86
|
+
process.stdout.write(data);
|
|
87
|
+
});
|
|
88
|
+
child.stderr.on('data', data => {
|
|
89
|
+
process.stderr.write(data);
|
|
90
|
+
});
|
|
91
|
+
child.on('exit', code => {
|
|
92
|
+
console.log(`webpack terminó con código ${code}`);
|
|
93
|
+
});
|
|
84
94
|
} else {
|
|
85
95
|
throw new Error("Cannot find APIA_4004 in " + envFile.fileName);
|
|
86
96
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apia/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.45",
|
|
4
4
|
"sideEffects": true,
|
|
5
5
|
"author": "Alexis Leite <alexisleite@live.com>",
|
|
6
6
|
"bin": {
|
|
@@ -8,15 +8,19 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"chalk": "^4.1.2",
|
|
11
|
-
"commander": "^12.0.0"
|
|
11
|
+
"commander": "^12.0.0",
|
|
12
|
+
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
|
13
|
+
"html-webpack-plugin": "^5.6.0",
|
|
14
|
+
"terser-webpack-plugin": "^5.2.5",
|
|
15
|
+
"ts-loader": "^9.5.2",
|
|
16
|
+
"webpack": "^5.91.0",
|
|
17
|
+
"webpack-bundle-analyzer": "^4.10.1",
|
|
18
|
+
"webpack-cli": "^5.1.4",
|
|
19
|
+
"wrapper-webpack-plugin": "^2.2.2"
|
|
12
20
|
},
|
|
13
21
|
"publishConfig": {
|
|
14
22
|
"access": "public",
|
|
15
23
|
"registry": "https://registry.npmjs.org/"
|
|
16
24
|
},
|
|
17
|
-
"gitHead": "
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"ts-loader": "^9.5.2",
|
|
20
|
-
"wrapper-webpack-plugin": "^2.2.2"
|
|
21
|
-
}
|
|
25
|
+
"gitHead": "1b035d1b515ceb49207373a4fafcf0ff465bc439"
|
|
22
26
|
}
|