diff --git a/lib/extensions.js b/lib/extensions.js index 90b50bce1..687d71844 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -25,27 +25,6 @@ function collectArguments(args) { } } -/** - * Get Runtime Info - * - * @api private - */ - -function getRuntimeInfo() { - var execPath = fs.realpathSync(process.execPath); // resolve symbolic link - - var runtime = execPath - .split(/[\\/]+/).pop() - .split('.').shift(); - - runtime = runtime === 'nodejs' ? 'node' : runtime; - - return { - name: runtime, - execPath: execPath - }; -} - /** * Get binary name. * If environment variable SASS_BINARY_NAME, @@ -122,7 +101,6 @@ var sass = process.sass = {}; sass.binaryName = getBinaryName(); sass.binaryUrl = getBinaryUrl(); -sass.runtime = getRuntimeInfo(); /** * Get binary path. diff --git a/scripts/build.js b/scripts/build.js index c8ff089b3..e5dc50658 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -135,9 +135,9 @@ function build(options) { return ['--', subject, '=', process.env[subject.toUpperCase()] || ''].join(''); })).concat(options.args); - console.log(['Building:', process.sass.runtime.execPath].concat(args).join(' ')); + console.log(['Building:', process.execPath].concat(args).join(' ')); - var proc = spawn(process.sass.runtime.execPath, args, { + var proc = spawn(process.execPath, args, { stdio: [0, 1, 2] });