Skip to content

Commit 01478b7

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #631 from NativeScript/fatme/set-project-id-when-upgrading-project
Set project id when upgrading project
2 parents 7137d73 + 53a51f0 commit 01478b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/project-data.ts

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export class ProjectData implements IProjectData {
8080
let newProjectData = this.$fs.exists(newProjectFilePath).wait() ? this.$fs.readJson(newProjectFilePath).wait() : {};
8181
newProjectData[this.$staticConfig.CLIENT_NAME_KEY_IN_PROJECT_FILE] = oldProjectData;
8282
this.$fs.writeJson(newProjectFilePath, newProjectData).wait();
83+
this.projectId = newProjectData[this.$staticConfig.CLIENT_NAME_KEY_IN_PROJECT_FILE].id;
8384

8485
this.$fs.deleteFile(oldProjectFilePath).wait();
8586
} catch(err) {

0 commit comments

Comments
 (0)