Skip to content
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

Merged
merged 1 commit into from
Jun 15, 2022
Merged

fix: dts path #398

merged 1 commit into from
Jun 15, 2022

Conversation

sxzz
Copy link
Member

@sxzz sxzz commented May 24, 2022

No description provided.

@sxzz sxzz requested a review from antfu as a code owner May 24, 2022 19:10
@@ -51,8 +51,7 @@
}
},
"files": [
"dist",
"*.d.ts"
"dist"
Copy link
Member

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 👀

Copy link
Member Author

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.

Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment was marked as off-topic.

@@ -51,8 +51,7 @@
}
},
"files": [
"dist",
"*.d.ts"
"dist"
],
"typesVersions": {
Copy link
Member Author

@sxzz sxzz May 24, 2022

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

@sxzz
Copy link
Member Author

sxzz commented Jun 14, 2022

@antfu 🤔 Is this PR acceptable for you? Or do you have any other questions that I can answer?

@antfu antfu merged commit 1f513e2 into main Jun 15, 2022
@antfu antfu deleted the fix/dts branch June 15, 2022 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

导入kebabCase等工具函数时找不到类型声明
2 participants