-
-
Notifications
You must be signed in to change notification settings - Fork 376
fix: dts path #398
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: dts path #398
Conversation
@@ -51,8 +51,7 @@ | |||
} | |||
}, | |||
"files": [ | |||
"dist", | |||
"*.d.ts" | |||
"dist" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit confused 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm seems there's no d.ts file on the root level directory, so no difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah but why types
are pointing to index.d.ts
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this work? https://antfu.me/notes#types-for-sub-modules
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
@@ -51,8 +51,7 @@ | |||
} | |||
}, | |||
"files": [ | |||
"dist", | |||
"*.d.ts" | |||
"dist" | |||
], | |||
"typesVersions": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You already config path alias here typesVersions
. So it will pointing to ./dist/dist/index.d.ts
@antfu 🤔 Is this PR acceptable for you? Or do you have any other questions that I can answer? |
No description provided.