Skip to content

Commit

Permalink
feat(state/load): sets cwd as default directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Apr 22, 2019
1 parent 164e7eb commit f673347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/load/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface ILoad {
export default async function load(opts: ILoadOpts): Promise<ILoad> {
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);
Expand Down

0 comments on commit f673347

Please sign in to comment.