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: add type declarations #113

Merged
merged 15 commits into from
Jan 9, 2022
Merged

fix: add type declarations #113

merged 15 commits into from
Jan 9, 2022

Conversation

RahulGautamSingh
Copy link
Contributor

@RahulGautamSingh RahulGautamSingh commented Jan 4, 2022

Changes:

Adds type declarations for the package.

Context:

@RahulGautamSingh
Copy link
Contributor Author

@rarkins Could you approve the workflows please..

@RahulGautamSingh
Copy link
Contributor Author

@rarkins Could you approve the workflows again please..

@rarkins
Copy link
Contributor

rarkins commented Jan 7, 2022

@viceice could you review?

lib/version.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
lib/operator.d.ts Outdated Show resolved Hide resolved
lib/semantic.d.ts Outdated Show resolved Hide resolved
lib/shared.ts Outdated Show resolved Hide resolved
lib/specifier.d.ts Outdated Show resolved Hide resolved
lib/version.d.ts Show resolved Hide resolved
RahulGautamSingh and others added 6 commits January 7, 2022 15:27
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>
@RahulGautamSingh
Copy link
Contributor Author

Ready for review and merge.🟩

Copy link
Member

@viceice viceice left a 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.

@RahulGautamSingh
Copy link
Contributor Author

Why are some functions have a declare? They should have all a declare or none.

Resolved

@RahulGautamSingh
Copy link
Contributor Author

RahulGautamSingh commented Jan 8, 2022

Ready for review.🟩
For some reason the request-review btn is not working for this PR

lib/specifier.d.ts Outdated Show resolved Hide resolved
lib/shared.ts Outdated Show resolved Hide resolved
@viceice
Copy link
Member

viceice commented Jan 8, 2022

@rarkins can you check my permission on this repo?

RahulGautamSingh and others added 2 commits January 9, 2022 16:15
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@RahulGautamSingh
Copy link
Contributor Author

Ready.

@viceice viceice mentioned this pull request Jan 9, 2022
@viceice
Copy link
Member

viceice commented Jan 9, 2022

You need to add the index.d.ts to files in package.json

@@ -51,7 +51,8 @@
},
"files": [
"index.js",
"lib"
"lib",
"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.

If this is missing, the file won't included in published package. 😉

Copy link
Contributor Author

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.✨

Copy link
Member

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.

Copy link
Contributor Author

@RahulGautamSingh RahulGautamSingh Jan 9, 2022

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.🙏

@viceice viceice merged commit eefd68b into renovatebot:main Jan 9, 2022
@github-actions
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants