-
Notifications
You must be signed in to change notification settings - Fork 6
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: add type declarations #113
fix: add type declarations #113
Conversation
@rarkins Could you approve the workflows please.. |
@rarkins Could you approve the workflows again please.. |
@viceice could you review? |
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Ready for review and merge.🟩 |
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.
Why are some functions have a declare? They should have all a declare or none.
…GautamSingh/pep440 into feat/add-type-declarations
Resolved |
Ready for review.🟩 |
@rarkins can you check my permission on this repo? |
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Ready. |
You need to add the |
@@ -51,7 +51,8 @@ | |||
}, | |||
"files": [ | |||
"index.js", | |||
"lib" | |||
"lib", | |||
"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.
If this is missing, the file won't included in published package. 😉
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 read somewhere that all files are included by default now, and only the files under .npmignore
are left out.
Nonetheless this is a good code-practice and an advisable thing to do as per the docs.✨
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, by default all files are included. But if you define the files
explicit, only those will be included in published package.
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.
Ahh yes, got it. I misunderstood and thought that even if we explicitly have a files property all others will be included.
Thanks , more clarity now.🙏
🎉 This PR is included in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Changes:
Adds type declarations for the package.
Context: