Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/definitions/project.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ interface IProjectData extends ICreateProjectData {
infoPlistPath: string;
buildXcconfigPath: string;
podfilePath: string;
initialized?: boolean;
/**
* Defines if the project is a code sharing one.
* Value is true when project has nativescript.config and it has `shared: true` in it.
Expand Down
6 changes: 4 additions & 2 deletions lib/services/project-data-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ export class ProjectDataService implements IProjectDataService {
this.projectDataCache[projectDir] =
this.projectDataCache[projectDir] ||
this.$injector.resolve<IProjectData>(ProjectData);
this.projectDataCache[projectDir].initializeProjectData(projectDir);

if (!this.projectDataCache[projectDir].initialized) {
this.projectDataCache[projectDir].initializeProjectData(projectDir);
this.projectDataCache[projectDir].initialized = true;
}
return this.projectDataCache[projectDir];
}

Expand Down