//
// step3) build rjs
//
- const rjsCmd = process.platform === "win32" ? "r.js.cmd" : "r.js";
process.chdir("../../");
{
console.time(name);
{
- childProcess.execSync(`${rjsCmd} -o ${configFile} name=${name} out=${name}.js`, {
+ childProcess.execSync(`node ${__dirname}/node_modules/.bin/r.js -o ${configFile} name=${name} out=${name}.js`, {
cwd: process.cwd(),
stdio: [0, 1, 2],
});
}
});
-const rjsCmd = (process.platform === "win32") ? "r.js.cmd" : "r.js";
rjsPaths.forEach(async path => {
let buildConfig = `${path}require.build.js`;
let outFilename = require(process.cwd() + `/${buildConfig}`).out;
}
console.time(outFilename);
- childProcess.execSync(`${rjsCmd} -o require.build.js ${overrides}`, {
+ childProcess.execSync(`node ${__dirname}/node_modules/.bin/r.js -o require.build.js ${overrides}`, {
cwd: path,
stdio: [0, 1, 2]
});