From f673347f3936bad69ede0f3e74fb3814a859b995 Mon Sep 17 00:00:00 2001 From: Rafa Mel Date: Mon, 22 Apr 2019 02:18:18 +0200 Subject: [PATCH] feat(state/load): sets cwd as default directory --- src/state/load/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/load/index.ts b/src/state/load/index.ts index 5f5ed3f..db22173 100644 --- a/src/state/load/index.ts +++ b/src/state/load/index.ts @@ -20,7 +20,7 @@ export interface ILoad { export default async function load(opts: ILoadOpts): Promise { const { kpo, pkg } = await getFile(opts); - let dir = path.parse(pkg || kpo || '').dir; + let dir = path.parse(pkg || kpo || process.cwd()).dir; if (kpo) logger.debug('kpo configuration file found at: ' + kpo); if (pkg) logger.debug('package.json found at: ' + pkg);