Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
adamduren committed Apr 2, 2019
1 parent 38dcc23 commit 09e369d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,8 @@
"cordova-js": "^4.2.4",
"eslint": "^5.7.0",
"jest": "^23.6.0"
},
"dependencies": {
"q": "^1.5.1"
}
}
6 changes: 3 additions & 3 deletions src/after_plugin_install.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ module.exports = function(ctx) {
return;
}

var fs = ctx.requireCordovaModule('fs'),
path = ctx.requireCordovaModule('path'),
Q = ctx.requireCordovaModule('q');
var fs = require('fs'),
path = require('path'),
Q = require('q');
var pluginXmlPath = path.join(__dirname, '..', 'plugin.xml');

return Q.Promise(function(resolve, reject) {
Expand Down
6 changes: 3 additions & 3 deletions src/before_plugin_install.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = function(ctx) {

var fs = ctx.requireCordovaModule('fs'),
path = ctx.requireCordovaModule('path'),
Q = ctx.requireCordovaModule('q');
var fs = require('fs'),
path = require('path'),
Q = require('q');
var projectRoot = ctx.opts.projectRoot,
configXmlPath = path.join(projectRoot, 'config.xml'),
pluginXmlPath = path.join(__dirname, '..', 'plugin.xml');
Expand Down
6 changes: 3 additions & 3 deletions src/before_plugin_rm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ module.exports = function(ctx) {
return;
}

var fs = ctx.requireCordovaModule('fs'),
path = ctx.requireCordovaModule('path'),
Q = ctx.requireCordovaModule('q');
var fs = require('fs'),
path = require('path'),
Q = require('q');
var projectRoot = ctx.opts.projectRoot,
configXmlPath = path.join(projectRoot, 'config.xml');

Expand Down
4 changes: 2 additions & 2 deletions src/ios/check_sdk_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module.exports = function (ctx) {

var PluginInfoProvider = ctx.requireCordovaModule('cordova-common').PluginInfoProvider;

var Q = ctx.requireCordovaModule('q'),
path = ctx.requireCordovaModule('path');
var Q = require('q'),
path = require('path');

var projectRoot = ctx.opts.projectRoot;
return Q.Promise(function (resolve, reject) {
Expand Down

0 comments on commit 09e369d

Please sign in to comment.