Skip to content

Commit

Permalink
fix(angular): host and remote app generation with directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Apr 5, 2023
1 parent fa349ac commit 8a22776
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/angular/src/generators/host/host.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
extractLayoutDirectory,
formatFiles,
getProjects,
runTasksInSerial,
Expand Down Expand Up @@ -39,7 +40,8 @@ export async function host(tree: Tree, options: Schema) {
});
}

const appName = normalizeProjectName(options.name, options.directory);
const { projectDirectory } = extractLayoutDirectory(options.directory);
const appName = normalizeProjectName(options.name, projectDirectory);

const appInstallTask = await applicationGenerator(tree, {
...options,
Expand Down
4 changes: 3 additions & 1 deletion packages/angular/src/generators/remote/remote.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
extractLayoutDirectory,
formatFiles,
getProjects,
runTasksInSerial,
Expand Down Expand Up @@ -30,7 +31,8 @@ export async function remote(tree: Tree, options: Schema) {
);
}

const appName = normalizeProjectName(options.name, options.directory);
const { projectDirectory } = extractLayoutDirectory(options.directory);
const appName = normalizeProjectName(options.name, projectDirectory);
const port = options.port ?? findNextAvailablePort(tree);

const appInstallTask = await applicationGenerator(tree, {
Expand Down

0 comments on commit 8a22776

Please sign in to comment.