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

* 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
This commit is contained in:
srleecode 2021-09-01 06:47:25 +10:00 committed by GitHub
parent a656959204
commit 69005cc097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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> {
@ -146,3 +146,5 @@ function addE2ETestRunner(
return () => {};
}
}
export default angularInitGenerator;