Repository navigation
fix: stack --dev links core for Storybook and editors #39
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
2654872
stack --dev: give a symlinked core a tsconfig that extends the app's
roble 4083edd
stack --dev: resolve a linked core's packages through node_modules
roble c5c3d95
stack --dev: repoint a package link another workspace left on core
roble b7b3098
Merge nightly/2026-11-24-storybook: Storybook setup (Vue)
roble File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Remove only the core setup that this workspace wrote.
When two apps share one core checkout and select the same framework,
stack vue --devin the second app overwrites the corejs/tsconfig.jsonand repoints thejs/node_moduleslink to its own paths. A laterstack --resetin the first app then deletes both artifacts without checking their owner. The second app loses editor and Storybook resolution. It recovers only afterstack --resetand a newstack --dev, becauserunDevModerefuses to run while a framework is still selected.Before each deletion, check that the artifact belongs to the resetting app. The config's
extendsmust equal<app>/tsconfig.json. The link's target must equal<app>/node_modules. Single-workspace cleanup still removes both, because both point to that app.Suggested fix
ast-grep (0.51.3)
[info] 194-194: Avoid unsafe call to unlink
Context: unlink($this->corePackagesLink($framework))
Note: [CWE-73] External Control of File Name or Path.
(avoid-unlink)
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.
Valid (contributor tooling only). Filed as sc-1258, https://app.shortcut.com/saucebase/story/1258; not blocking this release.