angular-architects / nx-ddd-plugin

Nx plugin for structuring a monorepo with domains and layers
313 stars 56 forks source link

[Bug] feature schematics not import the facade from the correct path #62

Closed wizardnet972 closed 3 years ago

wizardnet972 commented 3 years ago

After I create a domain and feature using those commands:

nx generate @angular-architects/ddd:domain --name=report --directory=ui

nx generate @angular-architects/ddd:feature --name=search --domain=report --app=ng-app --domainDirectory=ui --lazy

The ddd generate file search.component.ts with wrong path:

import { SearchFacade } from '@org-ddd/report/domain';

should be with ui like that:

import { SearchFacade } from '@org-ddd/report/ui/domain';

image

I'm using this plugin every day so this bug is really annoying.

@manfredsteyer I was send PR