diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-10-05 15:20:28 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-10-05 15:20:28 +0200 |
commit | 443c70d90a5cd0e958a653ed8df3352c9aac06d9 (patch) | |
tree | 7932765f372871b61f989d3584e924a920954dd8 /cmd | |
parent | 71301aa4ea7e23671759bdc39397baadc7271996 (diff) | |
download | npm4nix-443c70d90a5cd0e958a653ed8df3352c9aac06d9.tar.gz |
Extract only top-level package.json
Diffstat (limited to 'cmd')
-rwxr-xr-x | cmd/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/main.js b/cmd/main.js index b71bbed..43059ad 100755 --- a/cmd/main.js +++ b/cmd/main.js @@ -97,7 +97,7 @@ function processArchive(url) { try { exec(`curl -LsSf -o '${file}' '${url}'`); sha256 = getSHA256(file); - pkg = JSON.parse(exec(`tar -xOf '${file}' --wildcards '*/package.json'`)); + pkg = JSON.parse(exec(`tar -xOf '${file}' --wildcards --no-wildcards-match-slash '*/package.json'`)); } finally { rmTree(dir); } |