language/node: build native addons from source
By telling node-pre-gyp and prebuild to don't pull prebuild binaries and instead build them from source. This still may not work for some custom third party scripts for pulling prebuild binaries.
This commit is contained in:
parent
7d8124f339
commit
02113e2714
@ -44,6 +44,7 @@ module Language
|
||||
%W[
|
||||
-ddd
|
||||
--global
|
||||
--build-from-source
|
||||
--prefix=#{libexec}
|
||||
#{Dir.pwd}/#{pack}
|
||||
]
|
||||
@ -52,7 +53,10 @@ module Language
|
||||
def self.local_npm_install_args
|
||||
setup_npm_environment
|
||||
# npm install args for local style module format
|
||||
["-ddd"]
|
||||
%w[
|
||||
-ddd
|
||||
--build-from-source
|
||||
]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -41,6 +41,6 @@ describe Language::Node do
|
||||
|
||||
specify "#local_npm_install_args" do
|
||||
resp = subject.local_npm_install_args
|
||||
expect(resp).to include("-ddd")
|
||||
expect(resp).to include("-ddd", "--build-from-source")
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user