Skip to content

Commit 1b21b95

Browse files
committed
fix: fix platform list command
NativeScript CLI returns that there are no added platforms when iOS platform is already added as the comparison is case sensitive.
1 parent 23a9fa2 commit 1b21b95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/helpers/platform-command-helper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ export class PlatformCommandHelper implements IPlatformCommandHelper {
104104
}
105105

106106
const subDirs = this.$fs.readDirectory(projectData.platformsDir);
107-
return _.filter(subDirs, p => this.$mobileHelper.platformNames.indexOf(p) > -1);
107+
const platforms = this.$mobileHelper.platformNames.map(p => p.toLowerCase());
108+
return _.filter(subDirs, p => platforms.indexOf(p) > -1);
108109
}
109110

110111
public getAvailablePlatforms(projectData: IProjectData): string[] {

0 commit comments

Comments
 (0)