Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(codegen): Update module codegen (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
immasandwich authored May 10, 2022
1 parent 76fa3ef commit d3705e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cli/commands/codegen-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,20 @@ async function generateModule(appId: string, importStatement: string, providers:
const appTitleCase = strings.titleCase(appId);

const generatedContent = dedent`
import { Module } from '@nestjs/common';
import { AbstractDynamicApp } from '~app/app.dynamic-module';
import { Register } from '~app-toolkit/decorators';
import { AbstractApp } from '~app/app.dynamic-module';
import { ${appTitleCase}ContractFactory } from './contracts';
import { ${appTitleCase}AppDefinition } from './${appId}.definition';
${importStatement}
@Module({
@Register.AppModule({
appId: '${appId}',
providers: [
${appTitleCase}AppDefinition,
${appTitleCase}ContractFactory,${providers}
],
})
export class ${appTitleCase}AppModule extends AbstractDynamicApp<${appTitleCase}AppModule>() {}
export class ${appTitleCase}AppModule extends AbstractApp<${appTitleCase}AppModule>() {}
`;

Expand Down

0 comments on commit d3705e3

Please sign in to comment.