Repository navigation
Conversation
NoopDog
approved these changes
Dec 4, 2026
NoopDog
left a comment
Collaborator
There was a problem hiding this comment.
Thanks Hunter, a tidy swap: the lock change is exactly esrun's tree going away, all four scripts behave the same under tsx, and adding "type": "module" to files/ is the right fix for the estree-walker export error. A few optional notes:
- This also clears "Dependabot: esbuild 0.25.0 (GHSA-67mh-4wv8-2f99)" (#5128), which is still open; adding
Closes #5128would close it on merge. - In the description, "to resolve and import issue" reads as "an import issue", and naming the error (
ERR_PACKAGE_PATH_NOT_EXPORTEDfromestree-walkerwhenfiles/ran as CommonJS) would help later readers. The title could putesrunandtsxin backticks. - One more inline on a comment.
| "https://github.com/obophenotype/human-phenotype-ontology/releases/latest/download/phenotype.hpoa"; | ||
| const ORPHADATA_URL = "https://www.orphadata.com/data/xml/en_product1.xml"; | ||
| // Resolved from this script's location (esrun sets __dirname), so the script | ||
| // Resolved from this script's location (tsx sets __dirname), so the script |
Collaborator
There was a problem hiding this comment.
Optional: tsx doesn't set __dirname; Node does, because the root package has no "type" and runs as CommonJS (under "type": "module" it's undefined). Since files/ just became ESM, something like "Resolved from this script's location (Node sets __dirname because the root package is CommonJS)" would point at the real cause if the root ever switches.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket
Closes #5136
Changes
@digitak/esrunand installedtsxfor bothpackage.jsons"type": "module"to resolve and import issue