Skip to content

Commit feb0d90

Browse files
committed
fix: use expected path when generating a domain
The `--directory` parameter is used to determine the path for the domain library, and was introduced in #35. This commit corrects its usage so that the `--directory` appears before the domain's name in the path instead of appearing after. For example, this command: ng g @angular-architects/ddd:domain user --directory=management Will now generate the path `libs/management/user/domain` instead of `libs/user/management/domain`. Fixes #79 Fixes #12
1 parent f941452 commit feb0d90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/ddd/src/schematics/domain/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function (options: DomainOptions): Rule {
3333

3434
const libName = strings.dasherize(options.name);
3535
const libNameAndDirectory = options.directory
36-
? `${libName}/${options.directory}`
36+
? `${options.directory}/${libName}`
3737
: libName;
3838
const libNameAndDirectoryDasherized = strings
3939
.dasherize(libNameAndDirectory)

0 commit comments

Comments
 (0)