Refactor store architecture and remove build step from shared package#847
Closed
usagizmo wants to merge 2 commits into
Closed
Refactor store architecture and remove build step from shared package#847usagizmo wants to merge 2 commits into
usagizmo wants to merge 2 commits into
Conversation
- Rename `composables/` to `stores/local/` for clearer component-scoped state management - Remove @sveltejs/package build step, export source files directly from @repo/shared - Simplify package.json exports to use direct source file paths - Add documentation for Global/Local store patterns with directory structure
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
6969ee6 to
811f166
Compare
811f166 to
eac6a7d
Compare
eac6a7d to
151effc
Compare
Owner
Author
|
Reverted changes to @repo/shared/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
composables/directory tostores/local/for clearer distinction between global and component-scoped state management@sveltejs/packagebuild step from@repo/sharedpackage, now exports source files directlypackage.jsonexports configuration to use direct source file pathsChanges
Store Architecture
src/lib/composables/useCounter.svelte.tssrc/lib/stores/local/LocalCounter.svelte.tsShared Package
dev,build) that used@sveltejs/package@sveltejs/packagedependencyexportsto point directly to source files instead of compileddist/Documentation
stores/local/to directory structure diagramBenefits
Test Plan