File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,13 @@ export class PlatformController implements IPlatformController {
114
114
projectData . projectDir ,
115
115
platformData . platformNameLowerCase as SupportedPlatform
116
116
) ;
117
- // if no version is explicitly added, then we use the latest
118
- if ( ! version && ! desiredRuntimePackage . version ) {
117
+
118
+ if ( version ) {
119
+ desiredRuntimePackage . version = version ;
120
+ }
121
+
122
+ if ( ! desiredRuntimePackage . version ) {
123
+ // if no version is explicitly added, then we use the latest
119
124
desiredRuntimePackage . version = await this . $packageInstallationManager . getLatestCompatibleVersion (
120
125
desiredRuntimePackage . name
121
126
) ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export class PlatformValidationService implements IPlatformValidationService {
54
54
) ;
55
55
if ( ! hasPlatformDirectory ) {
56
56
this . $errors . fail (
57
- "The platform %s is not added to this project. Please use 'tns platform add <platform>'" ,
57
+ "The platform %s is not added to this project. Please use 'ns platform add <platform>'" ,
58
58
platform
59
59
) ;
60
60
}
You can’t perform that action at this time.
0 commit comments