UNPKG

ng-alain

Version:

Schematics specific to NG-ALAIN

9 lines (6 loc) 381 B
import { isStandaloneSchematic } from '@angular/cdk/schematics'; import { Tree } from '@angular-devkit/schematics'; export async function isStandalone(tree: Tree, schemaStandalone: boolean, projectName: string): Promise<boolean> { if (schemaStandalone != null) return schemaStandalone; return await isStandaloneSchematic(tree, { project: projectName, name: projectName }); }