File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 3
3
"name" : " npm-ri" ,
4
4
"private" : false ,
5
5
"description" : " npm install packages using regular expressions to update installed dependencies" ,
6
- "version" : " 0.0.5 " ,
6
+ "version" : " 0.0.6 " ,
7
7
"author" : " Danilo Britto" ,
8
8
"repository" : {
9
9
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -73,13 +73,21 @@ function run(
73
73
return ;
74
74
}
75
75
76
- throw new Error ( "Something went wrong" ) ;
76
+ program . error ( "Something went wrong" ) ;
77
77
} ) ;
78
78
79
79
return ;
80
80
}
81
81
82
- throw new Error (
82
+ if ( dryRun ) {
83
+ console . warn (
84
+ `No packages found with the next regular expressions: ${ dependencyNameRegex } `
85
+ ) ;
86
+
87
+ return ;
88
+ }
89
+
90
+ program . error (
83
91
`No packages found with the next regular expressions: ${ dependencyNameRegex } `
84
92
) ;
85
93
}
@@ -89,7 +97,7 @@ program
89
97
. description (
90
98
"npm install using regular expressions to update installed dependencies"
91
99
)
92
- . version ( "0.0.5 " ) ;
100
+ . version ( "0.0.6 " ) ;
93
101
94
102
program
95
103
. argument (
You can’t perform that action at this time.
0 commit comments