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

Commit f6934ee

Browse files
committed
chore(clean-shrinkwrap): preserve git+https:// resolved property
previously we thought that git:// was enough, but we also want git+https:// otherwise we can miss important info in clean shrinkwrap file
1 parent 7b5bedb commit f6934ee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

npm-shrinkwrap.clean.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
"dependencies": {
163163
"traceur": {
164164
"version": "0.0.33",
165+
"resolved": "git+https://github.com/vojtajina/traceur-compiler#d90b1e34c799bf61cd1aafdc33db0a554fa9e617",
165166
"dependencies": {
166167
"commander": {
167168
"version": "2.6.0"
@@ -4988,6 +4989,7 @@
49884989
},
49894990
"karma": {
49904991
"version": "0.12.31",
4992+
"resolved": "git+https://github.com/vojtajina/karma#94bf1319de85db854e5782dc798cfe2fc0609fa6",
49914993
"dependencies": {
49924994
"di": {
49934995
"version": "0.0.1"

scripts/clean-shrinkwrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var fs = require('fs');
1515
function cleanModule(module, name) {
1616

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

0 commit comments

Comments
 (0)