-
Notifications
You must be signed in to change notification settings - Fork 91
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
Update package.json to exclude source code from NPM package #253
Update package.json to exclude source code from NPM package #253
Conversation
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.
Let's also exclude tsbundleinfo as well from being packed into the SDK bundle.
Hey @NipuniBhagya @pavinduLakshan done with the changes |
@NipuniBhagya can you please review this now made the changes |
Hi @s-vamshi, While Have you considered that option? IMO, since we don't go into granular level to which files in include, rather we can just simply include Additionally, we could also copy the WDYT? |
Hey @brionmario, I agree with you, as lib folder didn't have .gitignore I thought of going with .npmignore. I will add files section in package.json and push them! |
Cool 🙌 Lets duplicate the |
Sure 🚀 |
06738a4
to
e731614
Compare
hey @brionmario, done with changes |
e731614
to
77bd188
Compare
Hey @brionmario @NipuniBhagya @pavinduLakshan I have made the changes as suggested can you please review this PR? |
Hey @brionmario @NipuniBhagya @pavinduLakshan can you please review this PR? |
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.
LGTM
LGTM too. Merged! |
🚢 Shipped with v5.2.0 |
Thanks @s-vamshi for the contribution 🎉 Looks like the fix is working as expected. If time permits, please try the released version in a React app and do a regression test round! |
Thanks @s-vamshi for the contribution. This just reduced the package size by 10% (744KB -> 659KB). Great work! |
Sure I will do regression testing |
Hi @s-vamshi, 🎉 Thank you for your contribution! 🎉 We appreciate your effort and the time you've taken to submit this PR. As part of the Hacktoberfest process, please make sure to fill out the form [1] shared to ensure we can properly track your contribution. Once again, thank you for your support, and we're excited to have you involved in our project! 🙌 |
Purpose
Resolves #200
Goals
src folder shouldn't be added in package and compiled types should be inside dist/types
Approach
Added .npmignore file to ignore src and added decelerationDir key in tsconfig.json to put complied types in dist/types/src