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

updated context.requireCordovaModule to require for non-cordova modules #249

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hooks/after_build/000-build_64_bit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = function(context) {

/** @external */
var deferral = context.requireCordovaModule('q').defer(),
var deferral = require('q').defer(),
UpdateConfig = require('./../update_config.js'),
updateConfig = new UpdateConfig(context);

Expand Down
2 changes: 1 addition & 1 deletion hooks/after_plugin_install/000-shared_mode_special.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = function(context) {

/** @external */
var deferral = context.requireCordovaModule('q').defer(),
var deferral = require('q').defer(),
UpdateConfig = require('./../update_config.js'),
updateConfig = new UpdateConfig(context);

Expand Down
2 changes: 1 addition & 1 deletion hooks/before_build/000-build_64_bit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = function(context) {

/** @external */
var deferral = context.requireCordovaModule('q').defer(),
var deferral = require('q').defer(),
UpdateConfig = require('./../update_config.js'),
updateConfig = new UpdateConfig(context);

Expand Down
2 changes: 1 addition & 1 deletion hooks/before_plugin_uninstall/000-shared_mode_special.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = function(context) {

/** @external */
var deferral = context.requireCordovaModule('q').defer(),
var deferral = require('q').defer(),
UpdateConfig = require('./../update_config.js'),
updateConfig = new UpdateConfig(context);

Expand Down
2 changes: 1 addition & 1 deletion hooks/update_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function(context) {
}

/** @external */
var fs = context.requireCordovaModule('fs'),
var fs = require('fs'),
path = context.requireCordovaModule('path'),
et = context.requireCordovaModule('elementtree');

Expand Down