tools/cli/dev-bundle-bin-helpers.js
Function addWindowsVariables
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addWindowsVariables(devBundleDir, env) {
// On Windows we provide a reliable version of python.exe for use by
// node-gyp (the tool that rebuilds binary node modules). #WinPy
env.PYTHON = env.PYTHON || path.join(
devBundleDir, "python", "python.exe");
Function getEnv
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.getEnv = function (options) {
var devBundle = options && options.devBundle;
var devBundlePromise = typeof devBundle === "string"
? Promise.resolve(convertToOSPath(devBundle))
: getDevBundle();