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();
19
19
20
20
const config = JSON . parse ( fs . readFileSync ( 'downstream_projects.json' ) ) ;
21
21
const pkgjson = JSON . parse ( fs . readFileSync ( 'package.json' ) ) ;
22
+ const projects = config . projects || config ;
23
+ const nohoist = ( config . projects && config . nohoist ) || [ ] ;
22
24
23
25
const DOWNSTREAM_PKGS = ( process . env . DOWNSTREAM_PKGS || '' ) . split ( ',' ) . filter ( x => x ) ;
24
26
@@ -96,10 +98,7 @@ function installWorkspaceDependencies(downstreamInstallDirs) {
96
98
private : true ,
97
99
"workspaces" : {
98
100
"packages" : downstreamInstallDirs ,
99
- "nohoist" : [
100
- "**/webpack" ,
101
- "**/karma-webpack" ,
102
- ]
101
+ "nohoist" : nohoist . concat ( [ "**/webpack" , "**/karma-webpack" , ] )
103
102
}
104
103
} ;
105
104
@@ -159,7 +158,7 @@ localPublish();
159
158
160
159
console . log ( ` ===> Fetching downstream projects <===` ) ;
161
160
const tree = { children : { } } ;
162
- fetchDownstreamProjects ( config , "" , tree . children ) ;
161
+ fetchDownstreamProjects ( projects , "" , tree . children ) ;
163
162
164
163
if ( yargs . argv . workspace ) {
165
164
console . log ( ` ===> Installing downstream dependencies <===` ) ;
You can’t perform that action at this time.
0 commit comments