Closed JoshuaKGoldberg closed 1 year ago
@all-contributors Please add @JoshuaKGoldberg for ideas and code
@Berkmann18
I've put up a pull request to add @JoshuaKGoldberg! :tada:
:tada: This PR is included in version 6.26.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Not sure it's fully related (I'm still investigating) but when passing from 6.25.0 to 6.26.0 of the project the command all-contributors add username doc,code,test
stopped working and fully erased the content of the file .all-contributorsrc. An easy repro is to take https://github.com/dubzzz/fast-check and run yarn contributor:add username doc,code,test
on it.
UPDATE 1
No issue with version 6.25.1. Issue starts at 6.26.0.
What: If the user has the
prettier
package available in their project and has a Prettier config file (e.g..prettierrc.json
), Prettier will be used to write.allcontributorsrc
files.Why: See #347.
How: Adds
prettier
as an optional dependency. Augments the config writing logic to:require('prettier')
prettier.resolveConfigFile.sync
JSON.stringify(content, null, 2)
if any of that fails.Checklist:
Are
optionalDependencies
the way to go? I can never keep track of the latest preferences around optionals/peers/etc.