Skip to content

Update plugin command #526

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

Closed
rosen-vladimirov opened this issue Jun 5, 2015 · 1 comment
Closed

Update plugin command #526

rosen-vladimirov opened this issue Jun 5, 2015 · 1 comment
Assignees
Milestone

Comments

@rosen-vladimirov
Copy link
Contributor

rosen-vladimirov commented Jun 5, 2015

Scenario

Plugin A is installed with version 1.0.0. After some time, a new version is released. We need an easy way to install the new version of the plugin. Using tns plugin add A is telling me that the plugin is already installed.

Possible solutions

  • tns plugin add A should update the version of the plugin to its latest one.
  • tns plugin update A should update the plugin A to its latest version.
  • tns plugin update could update all plugins to their latest versions.

Workaround

By default adding plugin with tns plugin add <plugin name> adds it to package.json with "^". This way, if you execute npm install in your project directory, the plugin in node_modules will be the latest one.
Also you can remove the plugin with tns plugin remove A and add it again with tns plugin add A. This way, plugin add command will use the latest version of the plugin.

@atanasovg
Copy link
Contributor

+1 for this feature, without it it is a bit tedious to incrementally develop and test a plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants