From 1407109a11b47ee80c043cb7b614fe069ee3ff4c Mon Sep 17 00:00:00 2001 From: Audrey So Date: Tue, 3 Oct 2017 15:57:52 -0700 Subject: [PATCH] CB-13303 : added save_exact and production opts --- src/cordova/plugin/add.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cordova/plugin/add.js b/src/cordova/plugin/add.js index 056a45147..0bf5fb163 100644 --- a/src/cordova/plugin/add.js +++ b/src/cordova/plugin/add.js @@ -87,7 +87,9 @@ function add (projectRoot, hooksRunner, opts) { link: opts.link, pluginInfoProvider: pluginInfoProvider, variables: opts.cli_variables, - is_top_level: true + is_top_level: true, + save_exact: opts['save-exact'] || false, + production: opts.production }; return module.exports.determinePluginTarget(projectRoot, cfg, target, fetchOptions).then(function (resolvedTarget) { @@ -121,7 +123,9 @@ function add (projectRoot, hooksRunner, opts) { // files platform_www directory, so they'll be applied to www on each prepare. usePlatformWww: true, nohooks: opts.nohooks, - force: opts.force + force: opts.force, + save_exact: opts['save-exact'] || false, + production: opts.production }; events.emit('verbose', 'Calling plugman.install on plugin "' + pluginInfo.dir + '" for platform "' + platform);