mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-19 07:26:59 +01:00
Inherit env for exec
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user