Skip to content

Commit ef80552

Browse files
Rafael Fernandez Serrachristopherthielen
authored andcommitted
fix(test_downstream_projects): read nested config projects correctly when projects property is defined inside downstream_projects.json config
1 parent 56687b5 commit ef80552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_downstream_projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function fetchDownstreamProjects(downstreamConfig, prefix, downstreamTreeNode) {
136136
const nestedDownstreamConfigPath = path.resolve(DOWNSTREAM_CACHE, installDir, 'downstream_projects.json');
137137
if (fs.existsSync(nestedDownstreamConfigPath)) {
138138
const nestedDownstreamConfig = JSON.parse(fs.readFileSync(nestedDownstreamConfigPath));
139-
fetchDownstreamProjects(nestedDownstreamConfig, installDir, children);
139+
fetchDownstreamProjects(nestedDownstreamConfig.projects || nestedDownstreamConfig, installDir, children);
140140
}
141141
});
142142
}

0 commit comments

Comments
 (0)