Skip to content

Commit f469d47

Browse files
committed
fix(cordova): use cordova command for now
To be safe, since there were issues running ionic project commands against uninitialized projects.
1 parent 52f1a8f commit f469d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ionic/cordova.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ IonicTask.prototype.run = function(ionic, argv) {
4747
var notInstalledMsg = ['• You\'re trying to build for ', runPlatform, ', but don\'t have the platform installed yet.'].join('').yellow,
4848
installingMsg = ['∆ Installing ', runPlatform, ' for you.'].join('').blue,
4949
installedMessage = ['√ Installed platform ', runPlatform].join('').green,
50-
installCmd = 'ionic platform add ' + runPlatform;
50+
installCmd = 'cordova platform add ' + runPlatform;
5151
Logging.logger.info(notInstalledMsg);
5252
Logging.logger.info(installingMsg);
5353
// Logging.logger.info(installCmd);
@@ -98,7 +98,7 @@ IonicTask.prototype.run = function(ionic, argv) {
9898

9999
plugins.forEach(function(plugin) {
100100
Logging.logger.info(['Installing ', plugin].join('').blue);
101-
shelljs.exec('ionic plugin add ' + plugin);
101+
shelljs.exec('cordova plugin add --save' + plugin);
102102
});
103103
})
104104
.then(function() {

0 commit comments

Comments
 (0)