From bb44bfca497a7d3c8d2b44ee573c45f145445374 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Fri, 19 Jul 2024 11:04:03 -0700 Subject: [PATCH] Inherit env for exec --- scripts/copy-plugins.cjs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)) {