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

Commit

Permalink
fix: replace requireCordovaModule with require for Cordova 9
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu committed Apr 16, 2019
1 parent acfed44 commit 4c41276
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hooks/windows/check-arch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module.exports = function(ctx) {
if (ctx.opts && ctx.opts.platforms && ctx.opts.platforms.indexOf('windows') > -1
&& ctx.opts.options) {
var path = require('path');
var shell = ctx.requireCordovaModule('shelljs');
var nopt = ctx.requireCordovaModule('nopt');
var shell = require('shelljs');
var nopt = require('nopt');

// parse and validate args
var args = nopt({
Expand All @@ -18,7 +18,7 @@ module.exports = function(ctx) {
'buildConfig': String
}, {}, ctx.opts.options.argv, 0);

// Check if --appx flag is passed so that we have a project build version override:
// Check if --appx flag is passed so that we have a project build version override:
var isWin10 = args.appx && args.appx.toLowerCase() === 'uap';

// Else check "windows-target-version" preference:
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,9 @@
"devDependencies": {
"jasmine-node": "1.14.5",
"pluginpub": "^0.0.9"
},
"dependencies": {
"nopt": "^4.0.1",
"shelljs": "^0.8.3"
}
}

0 comments on commit 4c41276

Please sign in to comment.