Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 101fd4b

Browse files
committed
chore(clean-shrinkwrap): drop from property from the clean shrinkwrap
it usually contains urls to temp directories which are not interesting, the info we do want to preserve is in the `resolved` property and we do keep that one.
1 parent f6934ee commit 101fd4b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

npm-shrinkwrap.clean.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3255,7 +3255,6 @@
32553255
},
32563256
"grunt-jasmine-node": {
32573257
"version": "0.1.0",
3258-
"from": "../../../../var/folders/_9/p__8cpj15lx5t538ggg0v2_w003k9q/T/npm-79025-87a1c15f/git-cache-9b6dfb6b81b8/ced17cbe52c1412b2ada53160432a5b681f37cd7",
32593258
"resolved": "git://github.com/vojtajina/grunt-jasmine-node.git#ced17cbe52c1412b2ada53160432a5b681f37cd7"
32603259
},
32613260
"grunt-jscs": {

scripts/clean-shrinkwrap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ var fs = require('fs');
1414

1515
function cleanModule(module, name) {
1616

17-
// keep `from` and `resolve` properties for git dependencies, delete otherwise
17+
// keep `resolve` properties for git dependencies, delete otherwise
18+
delete module.from;
1819
if (!(module.resolved && module.resolved.match(/^git(\+[a-z]+)?:\/\//))) {
19-
delete module.from;
2020
delete module.resolved;
2121
}
2222

0 commit comments

Comments
 (0)