Skip to content

Respect runtime version written in package json #2594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 9, 2017

Conversation

Mitko-Kerezov
Copy link
Contributor

Instead of always installing the latest runtime version, respect the one written in package.json nativescript key.

Ping @TsvetanMilanov @rosen-vladimirov @Plamen5kov

@Mitko-Kerezov Mitko-Kerezov added this to the 3.0.0-RC milestone Mar 9, 2017
@Mitko-Kerezov Mitko-Kerezov self-assigned this Mar 9, 2017
@Mitko-Kerezov Mitko-Kerezov requested a review from Plamen5kov March 9, 2017 09:29
@@ -67,6 +67,10 @@ export class PlatformService extends EventEmitter implements IPlatformService {
}

let platformData = this.$platformsData.getPlatformData(platform, projectData);
let currentPlatformData: any = this.$projectDataService.getNSValue(projectData.projectDir, platformData.frameworkPackageName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.$projectDataService.getNSValue can return null can you add check if it is null before you try to access currentPlatformData[constants.VERSION_STRING]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a check on the line below, nice catch 🎣

Copy link
Contributor

@Plamen5kov Plamen5kov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add tests, to make sure cli respects platform version given in package.json.

Dimitar Kerezov added 2 commits March 9, 2017 11:39
Instead of always installing the latest runtime version, respect the one written in `package.json` `nativescript` key.
@Mitko-Kerezov Mitko-Kerezov force-pushed the kerezov/respect-runtime-version branch from 666cb61 to ef24226 Compare March 9, 2017 10:21
@Mitko-Kerezov
Copy link
Contributor Author

Ping @TsvetanMilanov with fixed comments and @Plamen5kov with added tests

@Plamen5kov
Copy link
Contributor

👍 after green build

@Mitko-Kerezov Mitko-Kerezov merged commit b3795dc into master Mar 9, 2017
@Mitko-Kerezov Mitko-Kerezov deleted the kerezov/respect-runtime-version branch March 9, 2017 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants