all-contributors / all-contributors/allcontributors.org
Setting `README.md` in CLI
- 主要語言
- MDX
- 星號
- 8.1k
- 分支
- 1.7k
- 平均合併
- 17 小時 1 分鐘
- 30 天內合併 PR
- 6
描述
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.
```
貢獻指南
評估
這個 Issue 還沒有評估資料。