Skip to content

Commit

Permalink
Add missing CommonModule import to Angular modules
Browse files Browse the repository at this point in the history
  • Loading branch information
sdvg committed Mar 28, 2024
1 parent 1081daf commit d9a498b
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 14 deletions.
5 changes: 3 additions & 2 deletions packages/adapters/angular/v11/ng-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ fs.writeFileSync(
`
/* AutoGen NgModule */
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ${componentListStr} } from './components';
import { ReplaceTagDirective } from './angular-component-lib/ReplaceTagDirective';
export { setTagNameTransformer } from './angular-component-lib/tagNameTransformer';
@NgModule({
declarations: [ReplaceTagDirective, ${componentListStr}],
exports: [${componentListStr}],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [CommonModule],
})
export class KoliBriModule {}
export { ${componentListStr} }
Expand Down
5 changes: 3 additions & 2 deletions packages/adapters/angular/v12/ng-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ fs.writeFileSync(
`
/* AutoGen NgModule */
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ${componentListStr} } from './components';
import { ReplaceTagDirective } from './angular-component-lib/ReplaceTagDirective';
export { setTagNameTransformer } from './angular-component-lib/tagNameTransformer';
@NgModule({
declarations: [ReplaceTagDirective, ${componentListStr}],
exports: [${componentListStr}],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [CommonModule],
})
export class KoliBriModule {}
export { ${componentListStr} }
Expand Down
5 changes: 3 additions & 2 deletions packages/adapters/angular/v13/ng-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ fs.writeFileSync(
`
/* AutoGen NgModule */
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ${componentListStr} } from './components';
import { ReplaceTagDirective } from './angular-component-lib/ReplaceTagDirective';
export { setTagNameTransformer } from './angular-component-lib/tagNameTransformer';
@NgModule({
declarations: [ReplaceTagDirective, ${componentListStr}],
exports: [${componentListStr}],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [CommonModule],
})
export class KoliBriModule {}
export { ${componentListStr} }
Expand Down
5 changes: 3 additions & 2 deletions packages/adapters/angular/v14/ng-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ fs.writeFileSync(
`
/* AutoGen NgModule */
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ${componentListStr} } from './components';
import { ReplaceTagDirective } from './angular-component-lib/ReplaceTagDirective';
export { setTagNameTransformer } from './angular-component-lib/tagNameTransformer';
@NgModule({
declarations: [ReplaceTagDirective, ${componentListStr}],
exports: [${componentListStr}],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [CommonModule],
})
export class KoliBriModule {}
export { ${componentListStr} }
Expand Down
5 changes: 3 additions & 2 deletions packages/adapters/angular/v15/ng-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ fs.writeFileSync(
`
/* AutoGen NgModule */
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ${componentListStr} } from './components';
import { ReplaceTagDirective } from './angular-component-lib/ReplaceTagDirective';
export { setTagNameTransformer } from './angular-component-lib/tagNameTransformer';
@NgModule({
declarations: [ReplaceTagDirective, ${componentListStr}],
exports: [${componentListStr}],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [CommonModule],
})
export class KoliBriModule {}
export { ${componentListStr} }
Expand Down
5 changes: 3 additions & 2 deletions packages/adapters/angular/v16/ng-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ fs.writeFileSync(
`
/* AutoGen NgModule */
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ${componentListStr} } from './components';
import { ReplaceTagDirective } from './angular-component-lib/ReplaceTagDirective';
export { setTagNameTransformer } from './angular-component-lib/tagNameTransformer';
@NgModule({
declarations: [ReplaceTagDirective, ${componentListStr}],
exports: [${componentListStr}],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [CommonModule],
})
export class KoliBriModule {}
export { ${componentListStr} }
Expand Down
5 changes: 3 additions & 2 deletions packages/adapters/angular/v17/ng-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ fs.writeFileSync(
`
/* AutoGen NgModule */
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ${componentListStr} } from './components';
import { ReplaceTagDirective } from './angular-component-lib/ReplaceTagDirective';
export { setTagNameTransformer } from './angular-component-lib/tagNameTransformer';
@NgModule({
declarations: [ReplaceTagDirective, ${componentListStr}],
exports: [${componentListStr}],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [CommonModule],
})
export class KoliBriModule {}
export { ${componentListStr} }
Expand Down

0 comments on commit d9a498b

Please sign in to comment.