diff --git a/hooks/after_prepare.js b/hooks/after_prepare.js index 917d804..cde324f 100644 --- a/hooks/after_prepare.js +++ b/hooks/after_prepare.js @@ -1,13 +1,10 @@ module.exports = function(context) { - - var path = context.requireCordovaModule('path'), - fs = context.requireCordovaModule('fs'), - crypto = context.requireCordovaModule('crypto'), - Q = context.requireCordovaModule('q'), + var path = require('path'), + fs = require('fs'), + crypto = require('crypto'), + Q = require('q'), cordova_util = context.requireCordovaModule('cordova-lib/src/cordova/util'), platforms = context.requireCordovaModule('cordova-lib/src/platforms/platforms'), - Parser = context.requireCordovaModule('cordova-lib/src/cordova/metadata/parser'), - ParserHelper = context.requireCordovaModule('cordova-lib/src/cordova/metadata/parserhelper/ParserHelper'), ConfigParser = context.requireCordovaModule('cordova-common').ConfigParser; var deferral = new Q.defer(); @@ -166,4 +163,4 @@ module.exports = function(context) { fs.writeFileSync(sourceFile, content, 'utf-8'); } -} +} \ No newline at end of file