-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add rescript.settings.platformPath and correctly determine its default value #573
Conversation
5a525d4
to
8f1b39f
Compare
8f1b39f
to
f57d9cb
Compare
Should fix formatting in monorepos. Fixes rescript-lang#572
f57d9cb
to
cc7923e
Compare
I tested it on my monorepo and it did fix my autoformatting issue! Thanks @Minnozz! |
Tried it on two monorepo projects. I had no issues before, but also did not find any regression with this build. |
@Minnozz I'm inclined to merge this since it seems to fix setups that recently broke. Would you be available to help fix unforeseen issues that might come from this? Not necessarily thinking there will be any issues, but a lot of the ad hoc monorepo fixes we've merged has broken someone else's monorepo setup. Hence my question. |
@zth Yes, I'll do my best to fix any issues |
Thank you! |
…t value (#573) * Tweak description of rescript.settings.binaryPath * Add rescript.settings.platformPath * Add utils.findFilePathFromProjectRoot() * Remove unused utils.findBscBinary() * Rewrite algorithm to find bsc.exe based on platformPath Should fix formatting in monorepos. Fixes #572 Co-authored-by: Paul Tsnobiladzé <paul.tsnobiladze@gmail.com>
This introduces the setting
rescript.settings.platformPath
and fixes the algorithm to find it if the setting is not specified. This should fix formatting in monorepos, which relies onbsc.exe
.Fixes #572