all-contributors / all-contributors/allcontributors.org
Setting `README.md` in CLI
- Dominant language
- MDX
- Stars
- 8.1k
- Forks
- 1.7k
- Avg merge
- 17h 1m
- Merged PRs (30d)
- 6
Description
I cannot seem to set the location of `README.md` with the CLI. When I go to my repo root, and run the command:
```
yarn all-contributors generate --config /Users/mcranmer/Documents/PySR/.all-contributorsrc
```
I get the error:
```
warning package.json: No license field
$ /Users/mcranmer/node_modules/.bin/all-contributors generate --config /Users/mcranmer/Documents/PySR/.all-contributorsrc
Error: ENOENT: no such file or directory, open '/Users/mcranmer/README.md'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```
indicating it looks at `$HOME` rather than `$PWD` for the `README.md` file I have indicated in my `.all-contributorsrc`.
When I try to provide the `--files` flag, it seems to trigger a different bug:
```
yarn all-contributors generate --config /Users/mcranmer/Documents/PySR/.all-contributorsrc --files /Users/mcranmer/Documents/PySR/README.md
```
```
yarn run v1.22.19
warning package.json: No license field
$ /Users/mcranmer/node_modules/.bin/all-contributors generate --config /Users/mcranmer/Documents/PySR/.all-contributorsrc --files /Users/mcranmer/Documents/PySR/README.md
TypeError: argv.files.map is not a function
at startGeneration (/Users/mcranmer/node_modules/all-contributors-cli/dist/cli.js:30:33)
at /Users/mcranmer/node_modules/all-contributors-cli/dist/cli.js:113:14
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```
Contributor guide
Assessment
This issue has not been assessed yet.