From 45e247b2aff694252912ee8ba871b373061f3fde Mon Sep 17 00:00:00 2001 From: Uladzimir Havenchyk Date: Tue, 22 Dec 2015 12:58:55 +0300 Subject: [PATCH] Always use absolute appPath. Fixes #92 --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 2b0810fe867..c05fab2c062 100644 --- a/index.js +++ b/index.js @@ -55,6 +55,9 @@ var Builder = { return callback( new Error( 'Required option not set' ) ); } + // Make sure appPath is absolute + options.appPath = path.resolve( options.appPath ); + if ( typeof options.config === 'string' ) { configPath = path.resolve( process.cwd(), options.config );