node: add support for npm 7

Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Diogo Azevedo 2020-10-22 19:36:06 +02:00
parent c4ae961efa
commit 35a7e336be
No known key found for this signature in database
GPG Key ID: D1436EFA8DD7477B
2 changed files with 4 additions and 1 deletions

View File

@ -44,6 +44,9 @@ module Language
pack = pack_for_installation
# npm 7 requires that these dirs exist before install
(libexec/"lib").mkpath
# npm install args for global style module format installed into libexec
args = %W[
-ddd

View File

@ -25,7 +25,7 @@ describe Language::Node do
end
describe "#std_npm_install_args" do
npm_install_arg = "libexec"
npm_install_arg = Pathname("libexec")
npm_pack_cmd = "npm pack --ignore-scripts"
it "raises error with non zero exitstatus" do