-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
refactor: remove unnecessary code #309
refactor: remove unnecessary code #309
Conversation
Kudos, SonarCloud Quality Gate passed! |
"prepare": "npm run build:prod", | ||
"prepack": "cp ../README.md ./README.md && cp ../LICENSE ./LICENSE", | ||
"prepare": "npm run build:dev", | ||
"prepack": "npm run build:prod && cp ../README.md ./README.md && cp ../LICENSE ./LICENSE", | ||
"postpack": "rm -rf ./README.md && rm -rf ./LICENSE", |
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.
what is this for? why do we remove readme and license
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.
License and Readme are moved from root of project to library before publish, so by this library hasn't Readme in git, but we have it in npm https://www.npmjs.com/package/@asyncapi/react-component?activeTab=dependencies
After postpack we remove it (but these are copies).
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.
perfect, thanks for explanation, I wish there was package.yml
so we could have comments for future :(
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.
🤦🏼 Due to this https://github.com/asyncapi/asyncapi-react/blob/master/package.json#L20 from this commit a00fcc9 currently we haven't License and Readme on npm...
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 will fix it the PR with bumping dependencies for "old" component.
🎉 This PR is included in version 0.21.0-next.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Changes proposed in this pull request:
umd
bundles from@asyncapi/react-component/bundles/umd/...
to@asyncapi/react-component/browser
to improve DX.umd
bundles - Readme.md and in NextJS tutorial.Related issue(s)
Part of asyncapi/shape-up-process#83