You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2019/11/07 15:55:21 UTC
[cordova-lib] branch master updated: chore: deprecate plugin save
command (#780)
This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-lib.git
The following commit(s) were added to refs/heads/master by this push:
new d44aa85 chore: deprecate plugin save command (#780)
d44aa85 is described below
commit d44aa85646c972551428ad548bf5f093d3e19552
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Fri Nov 8 00:55:11 2019 +0900
chore: deprecate plugin save command (#780)
---
src/cordova/plugin/index.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/cordova/plugin/index.js b/src/cordova/plugin/index.js
index 43bb2f3..7934e8c 100644
--- a/src/cordova/plugin/index.js
+++ b/src/cordova/plugin/index.js
@@ -20,6 +20,7 @@
var cordova_util = require('../util');
var CordovaError = require('cordova-common').CordovaError;
var HooksRunner = require('../../hooks/HooksRunner');
+const { events } = require('cordova-common');
module.exports = plugin;
module.exports.add = require('./add');
@@ -85,6 +86,7 @@ function plugin (command, targets, opts) {
return module.exports.remove(projectRoot, targets, hooksRunner, opts);
case 'save':
// save the versions/folders/git-urls of currently installed plugins into config.xml
+ events.emit('warn', 'This command has been deprecated and will be removed in the next major release of Cordova.');
return module.exports.save(projectRoot, opts);
default:
return module.exports.list(projectRoot, hooksRunner);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org