Skip to content

Commit

Permalink
fix: use process.cwd vs . which can fail
Browse files Browse the repository at this point in the history
When '.' does not work, this utility function outside the runtime closure can yield an unhelpful error for consumers.
  • Loading branch information
DavideDaniel authored and anthony-redFox committed Nov 10, 2021
1 parent 61ed5dd commit 4cc70a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import getReadmeFile from '../get-readme-file.js';
const command = 'readme [input..]';
const description = 'inject documentation into your README.md';

const defaultReadmeFile = getReadmeFile('.');
const defaultReadmeFile = getReadmeFile(process.cwd());

/**
* Add yargs parsing for the readme command
Expand Down

0 comments on commit 4cc70a5

Please sign in to comment.