fix(schematic): correct path for angular project (#20436)

fixes #20435
This commit is contained in:
hiepxanh
2020-02-11 21:04:07 +07:00
committed by GitHub
parent 61f0faccdb
commit fd9c7a9601

View File

@ -117,7 +117,7 @@ export default function ngAdd(options: IonAddOptions): Rule {
`Ionic Add requires a project type of "application".` `Ionic Add requires a project type of "application".`
); );
} }
const sourcePath: Path = join(project.root as Path, project.sourceRoot as Path); const sourcePath: Path = join(project.sourceRoot as Path);
const rootTemplateSource = apply(url('./files/root'), [ const rootTemplateSource = apply(url('./files/root'), [
template({ ...options }), template({ ...options }),
move(sourcePath) move(sourcePath)