function collectScripts()

in build-tools/scripts.js [36:43]


function collectScripts () {
    const scripts = collectModules(path.join(pkgRoot, 'src/scripts'));
    for (const script of ['require', 'bootstrap']) {
        if (script in scripts) continue;
        throw new Error(`Could not find required script '${script}.js'`);
    }
    return scripts;
}