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

Update prettier call in lint command to use npm #536

Merged
merged 3 commits into from
Sep 11, 2024

Conversation

kmagiera
Copy link
Member

This PR updates call to prettier from lint script to use npm.

Previously the script would use yarn prettier to call prettier from node_modules/.bin, however, this comand fails now with newer version of yarn as the new yarn thinks this project is a yarn workspace project (due to package.json structure) which is not the case.

Since we're using npm as package manager, it's better to stick to it instead of relying on yarn for simple script calls.

This PR updates yarn prettier command to call npm exec prettier instead.

Copy link

vercel bot commented Sep 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-ide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 11, 2024 10:25am

@kmagiera kmagiera merged commit 36ad169 into main Sep 11, 2024
2 checks passed
@kmagiera kmagiera deleted the kmagiera/lint-script-fix branch September 11, 2024 10:27
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.

2 participants