Skip to content

Fix get binary dir path for monorepos #501

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

Conversation

fhammerschmidt
Copy link
Member

As already discussed in Discord, I would like to extend this PR with a test runner, to free us from future regressions. Any suggestions?

cc @cknitt please check if the monorepo example is realistic enough.

@fhammerschmidt
Copy link
Member Author

Or, you are free to merge this one and I deliver a test PR later.

@fhammerschmidt fhammerschmidt marked this pull request as ready for review July 19, 2022 15:15
Copy link
Collaborator

@cristianoc cristianoc left a comment

Choose a reason for hiding this comment

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

We need a spec first. Discussed on the forum and agreed by all monorepo users.
Implementation comes later.

@@ -67,7 +67,7 @@ let send: (msg: p.Message) => void = (_) => {};

let getBinaryDirPath = (projectRootPath: p.DocumentUri) =>
extensionConfiguration.binaryPath === null
? path.join(projectRootPath, c.nodeModulesBinDir)
? utils.findBinaryFromProjectRoot(projectRootPath)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good.

@cristianoc cristianoc merged commit 728398f into rescript-lang:master Jul 19, 2022
@fhammerschmidt fhammerschmidt deleted the fix-getBinaryDirPath-for-monorepos branch July 19, 2022 16:01
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