function beforeBuild()

in scripts/build.js [31:40]


function beforeBuild(dirName) {
  const seriesPath = path.join(__dirname, '../custom-series', dirName);
  const nodeModulesPath = path.join(seriesPath, 'node_modules');
  if (!fs.existsSync(nodeModulesPath)) {
    console.log(
      chalk.gray(`Installing dependencies for custom series ${dirName}...`)
    );
    execSync(`npm install`, { cwd: seriesPath });
  }
}