-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore!: Merge packages #881
Conversation
9f6d535
to
0deb52e
Compare
🚀 @guardian/commercial-bundle-v5.1.1-beta.1 published to npm as a beta release |
0158431
to
40a0bf4
Compare
🚀 @guardian/commercial-v7.1.1-beta.0 published to npm as a beta release |
1321daf
to
cb6b2e7
Compare
🚀 @guardian/commercial-v7.1.1-beta.1 published to npm as a beta release |
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.
Amazing work!
I can't say I've scoured every single file in this review, but it all broadly looks good to me. I had a couple of non-blocking questions / suggestions as well.
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.
Nice, thanks for sorting this out and for the in person review + dev time!
Co-authored-by: Chris Jones <christopher.jones@guardian.co.uk>
Co-authored-by: Chris Jones <christopher.jones@guardian.co.uk>
ee94d52
to
e37c84e
Compare
🎉 This PR is included in version 8.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What does this change?
Merges @guardian/commercial-core and @guardian/commercial-bundle
Main changes:
commercial-core
andcommercial-bundle
no longer exist and are replaced by a single repocommercial
src/core
tsconfig.core.json
to output indist/
when buildingdist/bundle/
dist/cjs/
dist/esm/
@guardian/commercial
will start at v8.0.0 which should avoid any clashes with previous tags and versionsOther:
baseUrl: 'src'
so instead you can import fromcore/
orprojects/
Follow up:
noUncheckedIndexedAccess
which is true forcore
but not the main source. This is has been ticketed as a follow up piece of work.Why?
Having separate core and bundle repos is primarily a legacy of having our code live across commercial and frontend repos. Core was intended to be a library of pure functions with stricter TypeScript rules. However since moving all code from frontend into commercial this distinction is less clear and causes an overhead in managing the two repos separately. By merging the two repos and aligning as much of the compilation rules as possible we can alleviate the overhead and reduce the complexity of our release process.