diff --git a/src/commands/readme.js b/src/commands/readme.js index dd3b1790a..ad401a0fc 100644 --- a/src/commands/readme.js +++ b/src/commands/readme.js @@ -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