Skip to content

Be able to import types when using NodeNext TypeScript module resolution #1703

Closed
@ChocolateLoverRaj

Description

I'm making an npm package which uses ora. To use ora, I switched to NodeNext module resolution. After doing that, the type checking for commander stopped working. I think package.json needs to be updated to be compatible with NodeNext module resolution.

Here is the guide to by the author of ora: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c.
Here is some related TypeScript documentation: https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#esm-nodejs

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions