Skip to content

Commit 4cc70a5

Browse files
DavideDanielanthony-redFox
authored andcommitted
fix: use process.cwd vs . which can fail
When '.' does not work, this utility function outside the runtime closure can yield an unhelpful error for consumers.
1 parent 61ed5dd commit 4cc70a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/readme.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import getReadmeFile from '../get-readme-file.js';
1111
const command = 'readme [input..]';
1212
const description = 'inject documentation into your README.md';
1313

14-
const defaultReadmeFile = getReadmeFile('.');
14+
const defaultReadmeFile = getReadmeFile(process.cwd());
1515

1616
/**
1717
* Add yargs parsing for the readme command

0 commit comments

Comments
 (0)