Skip to content

Commit

Permalink
Apply extensions found in root project
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed Jun 17, 2018
1 parent c2784f7 commit 9eccae0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/projectPreprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@ class ProjectPreprocessor {
await this.dependencyLookahead(project, project.dependencies);
}

await this.loadProjectConfiguration(project);
const {extensions} = await this.loadProjectConfiguration(project);
if (extensions && extensions.length) {
// Project contains additional extensions
// => apply them
// TODO: Check whether extensions get applied twice in case depLookahead already processed them
await Promise.all(extensions.map((extProject) => {
return this.applyExtension(extProject);
}));
}
this.applyShims(project);
if (this.isConfigValid(project)) {
await this.applyType(project);
Expand Down Expand Up @@ -232,6 +240,7 @@ class ProjectPreprocessor {

// Enhance project with its configuration
Object.assign(configuredProject, config);
return configuredProject;
});

return {extensions: extensionProjects};
Expand Down

0 comments on commit 9eccae0

Please sign in to comment.