File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change
1
+ const { get } = require ( 'lodash' ) ;
2
+
3
+ exports . command = 'get-config' ;
4
+ exports . desc = 'return mdeprc properties' ;
5
+ exports . builder = async ( yargs ) => {
6
+ yargs
7
+ . option ( 'path' , {
8
+ describe : 'path in config' ,
9
+ type : 'string' ,
10
+ } )
11
+ . strict ( false )
12
+ . help ( ) ;
13
+ } ;
14
+ exports . handler = ( argv ) => {
15
+ console . info ( get ( argv , argv . path ) ) ;
16
+ } ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function amIaDependency() {
20
20
return parentFolder === 'node_modules' || scopedParentFodler === 'node_modules' ;
21
21
}
22
22
23
- if ( ! amIaDependency ( ) && ! isForced ) {
23
+ if ( process . env . NPX || ( ! amIaDependency ( ) && ! isForced ) ) {
24
24
// top level install (we are running `npm i` in this project)
25
25
debug ( 'we are installing own dependencies' ) ;
26
26
process . exit ( 0 ) ;
You can’t perform that action at this time.
0 commit comments