mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-18 06:49:50 +02:00
Inherit env for exec
This commit is contained in:
@@ -9,10 +9,9 @@ if (!PLUGINS_DIR) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log('Installing dependencies', PLUGINS_DIR);
|
console.log('Installing dependencies', PLUGINS_DIR);
|
||||||
execSync('which npm');
|
execSync('npm ci', {cwd: PLUGINS_DIR, env: process.env});
|
||||||
execSync('npm ci', {cwd: PLUGINS_DIR});
|
|
||||||
console.log('Building plugins', PLUGINS_DIR);
|
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');
|
const pluginsRoot = path.join(PLUGINS_DIR, 'plugins');
|
||||||
for (const name of readdirSync(pluginsRoot)) {
|
for (const name of readdirSync(pluginsRoot)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user