Skip to content

Commit 84f6319

Browse files
committed
incorporate review suggestions
1 parent b9a2e27 commit 84f6319

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/bin/pack

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@ async function readJSON(dir) {
7474
return new Promise((ok, fail) => {
7575
const buffer = [];
7676
const child = spawn(
77-
'pnpm',
77+
'node',
7878
[
79-
'webpack',
79+
require.resolve(path.join('webpack', 'bin', 'webpack.js')),
8080
'--env', `dir=${path.relative(packDir, path.resolve(dir))}`,
8181
'--env', `bundle=${bundle}`,
8282
'--json',
8383
'-c', path.relative(packDir, path.join(compPath, 'webpack.config.' + target))
8484
],
8585
{
8686
cwd: packDir,
87-
shell: false,
87+
shell: process.platform === 'Win32',
8888
}
8989
);
9090
child.stdout.on('data', (data) => buffer.push(String(data)));

0 commit comments

Comments
 (0)