Skip to content

Commit 307d81f

Browse files
committed
fix(project): write determined project type to config
1 parent c67981e commit 307d81f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/ionic/src/lib/project/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,13 @@ export async function createProjectFromDirectory(rootDirectory: string, args: Pa
321321
return;
322322
}
323323

324-
return createProjectFromType(result.configPath, result.context === 'multiapp' ? result.name : undefined, deps, type);
324+
const project = await createProjectFromType(result.configPath, result.context === 'multiapp' ? result.name : undefined, deps, type);
325+
326+
if (project.type !== project.config.get('type')) {
327+
project.config.set('type', project.type);
328+
}
329+
330+
return project;
325331
}
326332

327333
export class ProjectConfig extends BaseConfig<IProjectConfig> {

0 commit comments

Comments
 (0)