You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** Disclaimer** This information might be inaccurate, due to it being generated automatically
To resolve the issue of unpinned dependencies during the upgrade, modify the doUpgrade function in upgrade.ts to respect the existing version format in package.json. Specifically, update the toUpgradedDependencies function to check if the current version is pinned and maintain that format. Here are the steps:
In upgrade.ts, locate the toUpgradedDependencies function.
Modify the function to preserve the existing version format:
Describe the bug
If you have pinned dependencies in
package.json
When
npx sb@latest upgrade
is run, the dependencies should remain pinned.But it currently adds a
^
caret before the version:Reproduction link
https://storybook.js.org/docs/configure/upgrading
Reproduction steps
npx sb@latest upgrade
System
Additional context
No response
The text was updated successfully, but these errors were encountered: