diff --git a/scripts/copy-plugins.cjs b/scripts/copy-plugins.cjs index 9f46b1f1..3cb35fa0 100644 --- a/scripts/copy-plugins.cjs +++ b/scripts/copy-plugins.cjs @@ -9,10 +9,9 @@ if (!PLUGINS_DIR) { } console.log('Installing dependencies', PLUGINS_DIR); -execSync('which npm'); -execSync('npm ci', {cwd: PLUGINS_DIR}); +execSync('npm ci', {cwd: PLUGINS_DIR, env: process.env}); console.log('Building plugins', PLUGINS_DIR); -execSync('npm run build', {cwd: PLUGINS_DIR, shell: ''}); +execSync('npm run build', {cwd: PLUGINS_DIR, env: process.env}); const pluginsRoot = path.join(PLUGINS_DIR, 'plugins'); for (const name of readdirSync(pluginsRoot)) {