Inherit env for exec

This commit is contained in:
Gregory Schier
2024-07-19 11:04:03 -07:00
parent 6fcb3948ce
commit bb44bfca49

View File

@@ -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)) {