Skip to content

Commit

Permalink
fix (angular): allows importing from @nrwl/angular:init (#6883)
Browse files Browse the repository at this point in the history
* fix (angular): allows importing from @nrwl/angular:init

fix (angular): allows importing from @nrwl/angular:init

Closes #6790

* chore(angular): fixed formatting error

chore(angular): fixed formatting error
  • Loading branch information
srleecode committed Aug 31, 2021
1 parent a656959 commit 69005cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/angular/src/generators/init/init.compat.ts
@@ -1,4 +1,4 @@
import { convertNxGenerator } from '@nrwl/devkit';
import init from './init';
import { angularInitGenerator } from './init';

export const initSchematic = convertNxGenerator(init);
export const initSchematic = convertNxGenerator(angularInitGenerator);
4 changes: 3 additions & 1 deletion packages/angular/src/generators/init/init.ts
Expand Up @@ -20,7 +20,7 @@ import {
import { karmaGenerator } from '../karma/karma';
import { Schema } from './schema';

export default async function (
export async function angularInitGenerator(
host: Tree,
options: Schema
): Promise<GeneratorCallback> {
Expand Down Expand Up @@ -146,3 +146,5 @@ function addE2ETestRunner(
return () => {};
}
}

export default angularInitGenerator;

0 comments on commit 69005cc

Please sign in to comment.