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);