fix(angular): host and remote app generation with directory (#16113)
This commit is contained in:
parent
ce308d3d2e
commit
44c5471dce
@ -1,4 +1,5 @@
|
||||
import {
|
||||
extractLayoutDirectory,
|
||||
formatFiles,
|
||||
getProjects,
|
||||
runTasksInSerial,
|
||||
@ -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,
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import {
|
||||
extractLayoutDirectory,
|
||||
formatFiles,
|
||||
getProjects,
|
||||
runTasksInSerial,
|
||||
@ -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, {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user