Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
fa40bda6
Commit
fa40bda6
authored
Jan 20, 2016
by
Michael Mifsud
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1325 from saper/process-execpath
Accept process.execPath as-is
parents
026fe07c
a4619bfa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
24 deletions
+2
-24
extensions.js
lib/extensions.js
+0
-22
build.js
scripts/build.js
+2
-2
No files found.
lib/extensions.js
View file @
fa40bda6
...
...
@@ -26,27 +26,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,
* .npmrc variable sass_binary_name or
...
...
@@ -122,7 +101,6 @@ var sass = process.sass = {};
sass
.
binaryName
=
getBinaryName
();
sass
.
binaryUrl
=
getBinaryUrl
();
sass
.
runtime
=
getRuntimeInfo
();
/**
* Get binary path.
...
...
scripts/build.js
View file @
fa40bda6
...
...
@@ -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
]
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment