Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: corrected allcontributors setup import path with fs #124

Merged
merged 1 commit into from
Dec 15, 2022

Conversation

JoshuaKGoldberg
Copy link
Owner

PR Checklist

Overview

Turns out the file path that's being imported is .allcontributorsrc, not .allcontributorsrc.json. ES Module JSON imports don't support importing files that don't have the .json extension. 🤷

So this switches to using JSON.parse and fs.readFile.

@JoshuaKGoldberg JoshuaKGoldberg merged commit 2506907 into main Dec 15, 2022
@JoshuaKGoldberg JoshuaKGoldberg deleted the setup-fix-allcontributors branch December 15, 2022 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug: Setup script crashes with [ERR_MODULE_NOT_FOUND] for .all-contributorsrc.json
1 participant