diff --git a/packages/browser/scripts/vendor/run.js b/packages/browser/scripts/vendor/run.js index 9f55ef80d..6cca81139 100644 --- a/packages/browser/scripts/vendor/run.js +++ b/packages/browser/scripts/vendor/run.js @@ -3,13 +3,13 @@ * - uses webpack to build tsub.js * - converts tsub.js to tsub.ts, appends comments, and moves it into the source directory */ -const { execSync } = require('node:child_process') +const { execFileSync } = require('node:child_process') const path = require('node:path') const { createTSFromJSLib } = require('./helpers') // build tsub.js with webpack const configPath = path.join(__dirname, 'webpack.config.vendor.js') -execSync(`yarn webpack --config ${configPath}`, { stdio: 'inherit' }) +execFileSync('yarn', ['webpack', '--config', configPath], { stdio: 'inherit' }) // create tsub.ts artifact and move to source directory const tsubInputBundlePath = path.join(__dirname, 'dist.vendor', 'tsub.js')