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
  • Loading branch information
suschneider authored Aug 11, 2022
1 parent d7cffbe commit 3280dd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions schematics/customization/add/index.js
Original file line number Diff line number Diff line change
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 projects');
for (const project in angularJson.projects) {
angularJson.projects[project].prefix = 'custom';
}

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

0 comments on commit 3280dd4

Please sign in to comment.