dpa99c / cordova-check-plugins

A CLI tool to check for / manage plugin updates in Cordova/Phonegap projects.
216 stars 25 forks source link

Option to save exact plugin version to config.xml #20

Closed biesbjerg closed 7 years ago

biesbjerg commented 7 years ago

When updating plugins, plugin version in config.xml is always set to ~VERSION.

Is it possible to save exact version?

dpa99c commented 7 years ago

TL;DR: Without this tool taking over versioning from the Cordova CLI, it's not possible to save the exact version without the ~.

The saving of plugin versions is actually being undertaken by the Cordova (or Phonegap) CLI - if the --save argument is present, this tool forwards it onto the Cordova CLI command.

So cordova-check-plugins --update=cordova-plugin-device --save is the same as doing cordova plugin rm cordova-plugin-device && cordova add cordova-plugin-device --save.

Therefore the ~ added to the version number is done by the Cordova CLI. This was changed from '^' some time ago (see here).

kelvindart commented 6 years ago

They now support this tag - is there a way to include it in the plugin?