Skip to content

Commit 45e969b

Browse files
committed
Fix: Build failing when current working directory is a cordova project
1 parent cdf0656 commit 45e969b

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wavemaker/wm-cordova-cli",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "command line tool to easily build a wavemaker mobile project",
55
"main": "index.js",
66
"preferGlobal": true,

src/command.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ module.exports = {
173173
logger.setLogDirectory(config.logDirectory);
174174
const cordovaToUse = args.cordovaVersion ? config.src + 'node_modules/cordova/bin/cordova' : 'cordova';
175175
const cordovaVersion = args.cordovaVersion || (await exec('cordova', ['--version'])).join('').match(/[0-9][0-9\.]+/)[0];
176+
process.env.PWD = config.src;
176177
await exec('npm', ['install'], {
177178
cwd: config.src
178179
});

0 commit comments

Comments
 (0)