Skip to content

Commit

Permalink
fix: correct selector for custom components in projects generated by …
Browse files Browse the repository at this point in the history
…schematics
  • Loading branch information
suschneider committed Aug 9, 2022
1 parent 8f5dba3 commit ad73c56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions schematics/customization/add/index.js
Expand Up @@ -21,8 +21,10 @@ execSync(`npx ncp src/styles/themes/b2b src/styles/themes/${theme} --stopOnErr`)
// replace in angular.json
const angularJson = parse(fs.readFileSync('./angular.json', { encoding: 'UTF-8' }));
const project = angularJson.defaultProject;
console.log('setting prefix for new components to "custom"');
angularJson.projects[project].prefix = 'custom';
console.log('setting prefix for new components to "custom" for all themes');
for (const key in angularJson.projects) {
angularJson.projects[key].prefix = 'custom';
}

const architect = angularJson.projects[project].architect;
architect.build.configurations[theme] = {};
Expand Down

0 comments on commit ad73c56

Please sign in to comment.