Skip to content

Fetch versions directly from npm registry url #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

Merged
merged 4 commits into from
May 14, 2024

Conversation

fhammerschmidt
Copy link
Member

@fhammerschmidt fhammerschmidt commented May 8, 2024

Fixes #51

@fhammerschmidt fhammerschmidt requested a review from cknitt May 8, 2024 12:38
NpmRegistry.getPackageVersions("rescript", rescriptVersionRange),
NpmRegistry.getPackageVersions("@rescript/core", rescriptCoreVersionRange),
)) catch {
| _exn => Error.make("Fetching versions from registry failed.")->Error.raise
Copy link
Member Author

Choose a reason for hiding this comment

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

need to raise the error here (and not inside getPackageVersions) so that the message shows up nicely formatted in the prompt

@fhammerschmidt fhammerschmidt merged commit 68c602a into rescript-lang:master May 14, 2024
@fhammerschmidt fhammerschmidt deleted the no-npm-view branch May 14, 2024 08:33
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.

Why is it still trying to use npm when bootstrapping from Bun?
3 participants