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

Commit

Permalink
fix(generators): no module by default (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartington authored and danbucholtz committed Jul 10, 2017
1 parent feea7fe commit dfcaefa
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 @@ -12,7 +12,7 @@ import { ensureSuffix, removeSuffix } from '../util/helpers';
import { appendNgModuleDeclaration, insertNamedImportIfNeeded } from '../util/typescript-utils';

export function hydrateRequest(context: BuildContext, request: GeneratorRequest) {
const hydrated = Object.assign({ includeNgModule: true }, request) as HydratedGeneratorRequest;
const hydrated = Object.assign({ includeNgModule: false }, request) as HydratedGeneratorRequest;
const suffix = getSuffixFromGeneratorType(context, request.type);

hydrated.className = ensureSuffix(pascalCase(request.name), upperCaseFirst(suffix));
Expand Down

0 comments on commit dfcaefa

Please sign in to comment.