@angular-architects/ddd
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@angular-architects/ddd", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Manfred Steyer", | ||
@@ -5,0 +5,0 @@ "description": "Nx plugin for structuring a monorepo with domains and layers", |
@@ -103,2 +103,8 @@ "use strict"; | ||
const appModulePath = `apps/${appFolderName}/src/app/app.module.ts`; | ||
if (options.app) { | ||
const requiredAppModulePath = `apps/${appFolderName}/src/app/app.module.ts`; | ||
if (!host.exists(requiredAppModulePath)) { | ||
throw new Error(`Specified app ${options.app} does not exist: ${requiredAppModulePath} expected!`); | ||
} | ||
} | ||
const domainTemplates = schematics_1.apply(schematics_1.url('./files/forDomain'), [ | ||
@@ -105,0 +111,0 @@ filterTemplates(options), |
@@ -159,2 +159,9 @@ import { chain, externalSchematic, Rule, Tree, SchematicsException, apply, url, template, move, mergeWith, noop, filter } from '@angular-devkit/schematics'; | ||
if (options.app) { | ||
const requiredAppModulePath = `apps/${appFolderName}/src/app/app.module.ts`; | ||
if (!host.exists(requiredAppModulePath)) { | ||
throw new Error(`Specified app ${options.app} does not exist: ${requiredAppModulePath} expected!`); | ||
} | ||
} | ||
const domainTemplates = apply(url('./files/forDomain'), [ | ||
@@ -161,0 +168,0 @@ filterTemplates(options), |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50003
844