Skip to content

Commit

Permalink
fix: remove autogenerated from business components html
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Spirig committed Sep 10, 2019
1 parent dfd583b commit 6f7b00e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schematics/public2business/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function copyAndAdaptPublicModule(tree, moduleName) {
function adaptFile(entry) {
const autogenerated = '/** Autogenerated by public2business schematic. DO NOT CHANGE! */\n';
const content = entry.content.toString('utf8');
if (entry.path.endsWith('.md') || entry.path.endsWith('.json')) {
if (['md', 'json', 'html'].some(e => entry.path.endsWith(`.${e}`))) {
return content;
}
else if (entry.path.endsWith('.scss')) {
Expand Down
2 changes: 1 addition & 1 deletion schematics/public2business/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function copyAndAdaptPublicModule(tree: Tree, moduleName: string) {
function adaptFile(entry: Readonly<FileEntry>) {
const autogenerated = '/** Autogenerated by public2business schematic. DO NOT CHANGE! */\n';
const content = entry.content.toString('utf8');
if (entry.path.endsWith('.md') || entry.path.endsWith('.json')) {
if (['md', 'json', 'html'].some(e => entry.path.endsWith(`.${e}`))) {
return content;
} else if (entry.path.endsWith('.scss')) {
return `${autogenerated}$sbbBusiness: true;\n\n${content}`;
Expand Down

0 comments on commit 6f7b00e

Please sign in to comment.