scinote-web/engines_yarn_install.js

12 lines
311 B
JavaScript
Raw Permalink Normal View History

#!/usr/bin/env node
const { spawn, execSync } = require('child_process');
const enginePaths = execSync('ls -d $PWD/addons/*').toString().split('\n').filter((p) => !!p);
enginePaths.forEach(enginePath => {
spawn('yarn', ['install'], {
env: process.env,
cwd: enginePath,
stdio: 'inherit'
});
});