Skip to content

Commit 95faa0c

Browse files
authored
Merge pull request #1413 from mathjax/update/pnpm_in_components
Update components compilation to use pnpm
2 parents 8a12d07 + 84f6319 commit 95faa0c

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-
'npx',
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: true,
87+
shell: process.platform === 'Win32',
8888
}
8989
);
9090
child.stdout.on('data', (data) => buffer.push(String(data)));

0 commit comments

Comments
 (0)