Skip to content

Conversation

nojaf
Copy link
Member

@nojaf nojaf commented Sep 11, 2025

Proposed solution of rescript-lang/rescript#7858 (comment)

I extracted some code to find the bsc arguments as bsb/ninja and rewatch go there separate way there.

@nojaf nojaf marked this pull request as ready for review September 12, 2025 07:14
@nojaf nojaf requested a review from zth September 12, 2025 07:29
Copy link
Member

@zth zth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Just 2 wishes for better types, and then a few smaller non-critical questions.

Comment on lines +135 to +140
/**
* Find all installed @rescript/runtime directories in the given project path.
* In a perfect world, there should be exactly one.
* This function is cached per project path.
*/
export const findRescriptRuntimesInProject = findRuntimeCached();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this live together with the existing project state, or does it need to be on its own here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pulled this out so users can easily run the script and let us know if it finds the runtime.

@nojaf nojaf requested a review from zth September 12, 2025 11:15
Copy link
Member

@zth zth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff! Let's release this as stable after the next beta release.

@nojaf nojaf merged commit 0f4acf9 into rescript-lang:master Sep 12, 2025
6 checks passed
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