File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ const PKG_DIR = process.cwd();
1919
2020const config = JSON . parse ( fs . readFileSync ( 'downstream_projects.json' ) ) ;
2121const pkgjson = JSON . parse ( fs . readFileSync ( 'package.json' ) ) ;
22+ const projects = config . projects || config ;
23+ const nohoist = ( config . projects && config . nohoist ) || [ ] ;
2224
2325const DOWNSTREAM_PKGS = ( process . env . DOWNSTREAM_PKGS || '' ) . split ( ',' ) . filter ( x => x ) ;
2426
@@ -96,10 +98,7 @@ function installWorkspaceDependencies(downstreamInstallDirs) {
9698 private : true ,
9799 "workspaces" : {
98100 "packages" : downstreamInstallDirs ,
99- "nohoist" : [
100- "**/webpack" ,
101- "**/karma-webpack" ,
102- ]
101+ "nohoist" : nohoist . concat ( [ "**/webpack" , "**/karma-webpack" , ] )
103102 }
104103 } ;
105104
@@ -159,7 +158,7 @@ localPublish();
159158
160159console . log ( ` ===> Fetching downstream projects <===` ) ;
161160const tree = { children : { } } ;
162- fetchDownstreamProjects ( config , "" , tree . children ) ;
161+ fetchDownstreamProjects ( projects , "" , tree . children ) ;
163162
164163if ( yargs . argv . workspace ) {
165164 console . log ( ` ===> Installing downstream dependencies <===` ) ;
You can’t perform that action at this time.
0 commit comments