-
Notifications
You must be signed in to change notification settings - Fork 4
Refactor package export #262
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
Conversation
🦋 Changeset detectedLatest commit: 784e6e7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
4c3a25a to
ef6420e
Compare
|
Might hold on merging this for a later v3 release. |
|
Actually, after profiling, I'm finding this doesn't make a significant difference in terms of memory usage or startup speed. Module resolution is FAST. Gonna rework it so that there still are some barrel files, but only the common public API is included. |
After profiling, it turns out that removing barrel files really doesn't have a performance impact for this use. We're keeping the more specific import paths, but als adding back some barrels for convenience.
This pull request introduces a major breaking change across all Launchpad packages: it removes all barrel (index) files, requiring imports to reference specific module paths directly. The change impacts import statements throughout the codebase and documentation, and enforces this new structure via linting. Additionally, documentation is updated to clarify usage for both monorepo and individual package installations.
Barrel File Removal and Import Path Updates
@bluecadet/launchpad-content/plugins/...and sources from@bluecadet/launchpad-content/sources/....Linting and Tooling
noBarrelFile) to enforce the absence of barrel files, and extended the Biome configuration to include this rule and to lint TypeScript files in thescriptsdirectory.Documentation Improvements
@bluecadet/launchpad), explaining how to adjust import paths accordingly.These changes are major and breaking, so all downstream code and documentation must update import paths to match the new structure.
Resolves #255