Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

Commit

Permalink
[#436] consumes utility functions in phonegap/util/project module ins…
Browse files Browse the repository at this point in the history
…tead of cordova utils
  • Loading branch information
lorinbeer committed Sep 18, 2014
1 parent e2d826f commit 5ebd82c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/phonegap/install.js
Expand Up @@ -5,8 +5,7 @@
var Command = require('./util/command'),
project = require('./util/project'),
platforms = require('./util/platform'),
cordova = require('cordova-lib').cordova,
cdvutils = require('../../node_modules/cordova-lib/src/cordova/util');
cordova = require('cordova-lib').cordova;

util = require('util');

Expand Down Expand Up @@ -84,7 +83,7 @@ InstallCommand.prototype.execute = function(options, callback) {

try {
// will throw if element in options.platform isn't recognized
installed = cdvutils.listPlatforms('.');
installed = project.listPlatforms('.');
if (!(options.platforms[0] in installed)) {
cordova.platform('add', options.platforms, null, function(e){
// invoke local build
Expand Down

0 comments on commit 5ebd82c

Please sign in to comment.