Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
fix(generator): write file sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartington committed Jul 26, 2017
1 parent 67907b6 commit b0bcb05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function hydrateRequest(context: BuildContext, request: GeneratorRequest)
export function createCommonModule(envVar: string, requestType: string) {
let className = requestType.charAt(0).toUpperCase() + requestType.slice(1) + 's';
let tmplt = `import { NgModule } from '@angular/core';\n@NgModule({\n\tdeclarations: [],\n\timports: [],\n\texports: []\n})\nexport class ${className}Module {}\n`;
return writeFileAsync(envVar, tmplt);
writeFileSync(envVar, tmplt)
}

export function hydrateTabRequest(context: BuildContext, request: GeneratorTabRequest) {
Expand Down

0 comments on commit b0bcb05

Please sign in to comment.