-
-
Notifications
You must be signed in to change notification settings - Fork 546
Closed
Description
Hi! During debug I have noticed something interesting. To use top-level await I've changed package to module and activated esm for ts-node. However right after this import for json files stopped working.
Here is what I have in IDE

And here is the base path ts-node is trying to resolve workspace.json against to.
I think you should take root path from tsconfig to resolve imports, same as typescript does. Otherwise is different logic
For now I'd prefer not to use ts-node with esm: true.
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
