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

fix(info): error instead of panic for npm specifiers when using byonm #25947

Merged

Conversation

dsherret
Copy link
Member

This is for the time being. We need to decide how this should behave.

It was panicking because npm specifier entrypoints aren't resolved anywhere except for deno run (it resolves the binary entrypoint).

Closes #25903

} else if NpmPackageReqReference::from_str(&run_flags.script)
.is_ok()
{
ModuleSpecifier::parse(&run_flags.script)?
Copy link
Member Author

Choose a reason for hiding this comment

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

This check was useless. It's done in the else condition.

@dsherret dsherret enabled auto-merge (squash) September 30, 2024 19:44
@dsherret dsherret merged commit d7b7877 into denoland:main Sep 30, 2024
17 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.

Panic with deno info in BYONM
2 participants