File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ const OPTIONS = [{
16
16
alias : 'h' ,
17
17
description : 'Shows usage instructions' ,
18
18
type : Boolean ,
19
+ } , {
20
+ name : 'just-fix-deps' ,
21
+ description : 'Skips installation of libraries, just fixes dependencies' ,
22
+ type : Boolean ,
19
23
} , {
20
24
name : 'libraries' ,
21
25
defaultOption : true ,
@@ -46,7 +50,7 @@ const HELP = [{
46
50
* into NPM's install command.
47
51
*/
48
52
function generateTargetPackage ( entry ) {
49
- if ( entry [ 1 ] . match ( / ^ ( g i t \+ ) ? h t t p s ? : \/ \/ / ) ) return entry [ 1 ] ;
53
+ if ( entry [ 1 ] . match ( / ^ ( g i t \+ ) ? ( f i l e | h t t p s ) ? : \/ \/ / ) ) return entry [ 1 ] ;
50
54
if ( entry [ 1 ] . match ( / ^ [ \^ ~ ] / ) ) return `${ entry [ 0 ] } @${ entry [ 1 ] . slice ( 1 ) } ` ;
51
55
return `${ entry [ 0 ] } @${ entry [ 1 ] } ` ;
52
56
}
@@ -137,7 +141,7 @@ if (options.help) showHelp();
137
141
else {
138
142
const hostData = getHostPackageJson ( ) ;
139
143
options . libraries . forEach ( ( library ) => {
140
- install ( library ) ;
144
+ if ( ! options [ 'just-fix-deps' ] ) install ( library ) ;
141
145
const libData = getPackageJson ( library ) ;
142
146
adoptDevDependencies ( libData , hostData ) ;
143
147
updateProdDependencies ( libData , hostData ) ;
You can’t perform that action at this time.
0 commit comments