Skip to content

Commit 44b96f5

Browse files
committed
[INTERNAL] Apply extensions found in root project
1 parent cc9ac32 commit 44b96f5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/projectPreprocessor.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,15 @@ class ProjectPreprocessor {
6565
await this.dependencyLookahead(project, project.dependencies);
6666
}
6767

68-
await this.loadProjectConfiguration(project);
68+
const {extensions} = await this.loadProjectConfiguration(project);
69+
if (extensions && extensions.length) {
70+
// Project contains additional extensions
71+
// => apply them
72+
// TODO: Check whether extensions get applied twice in case depLookahead already processed them
73+
await Promise.all(extensions.map((extProject) => {
74+
return this.applyExtension(extProject);
75+
}));
76+
}
6977
this.applyShims(project);
7078
if (this.isConfigValid(project)) {
7179
await this.applyType(project);
@@ -232,6 +240,7 @@ class ProjectPreprocessor {
232240

233241
// Enhance project with its configuration
234242
Object.assign(configuredProject, config);
243+
return configuredProject;
235244
});
236245

237246
return {extensions: extensionProjects};

0 commit comments

Comments
 (0)