-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Be able to import types when using NodeNext
TypeScript module resolution
#1703
Comments
I found out how to make it work: I copied |
How are you importing Commander into your source file? e.g.
|
Creating export * from './typings/index.js' |
@shadowspawn I'm importing it exactly like that |
Looks like we are missing
|
@shadowspawn Should I make a PR adding the |
Yes, if you like. I was about to myself, but give you first option. 😄 |
Fixed in Commander v9.2.0 |
I'm making an npm package which uses
ora
. To useora
, I switched toNodeNext
module resolution. After doing that, the type checking forcommander
stopped working. I thinkpackage.json
needs to be updated to be compatible withNodeNext
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
The text was updated successfully, but these errors were encountered: