Skip to content

fix: fix tns platform list and tns platform clean commands #4733

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
Jun 18, 2019

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Jun 18, 2019

This PR fixes 2 issues:

clean command

tns clean command doesn't add the correct platform.
To reproduce:

  1. tns platform add [email protected]
  2. tns clean
    Expected: The steps above should delete [email protected] and install again [email protected]
    Actual: The platform [email protected] is deleted but [email protected] is added instead.

platform list

tns platform list command doesn't work when there is already added platform. This is due to the fact that NativeScript CLI makes case sensitive comparison when getting already installed platforms.

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

Fatme added 2 commits June 17, 2019 23:08
…n already added

To reproduce:
1. `tns platform add [email protected]`
2. `tns platform clean ios`

Expected output:
Platform ios successfully removed.
Copying template files...
Platform ios successfully added. v5.1.0

Actual output:
Platform ios successfully removed.
Copying template files...
Platform ios successfully added. v5.4.2
NativeScript CLI returns that there are no added platforms when iOS platform is already added as the comparison is case sensitive.
@cla-bot cla-bot bot added the cla: yes label Jun 18, 2019
@Fatme Fatme changed the title Fatme/fix platform commands fix: fix tns platform list and tns platform clean commands Jun 18, 2019
@rosen-vladimirov rosen-vladimirov merged commit 127512f into feature/webpack-only Jun 18, 2019
@rosen-vladimirov rosen-vladimirov deleted the fatme/fix-platform-commands branch June 18, 2019 05:24
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.

2 participants