-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: npx sb@latest upgrade unpins pinned dependencies #28569
Comments
** Disclaimer** This information might be inaccurate, due to it being generated automatically
const toUpgradedDependencies = (deps: Record<string, any>) => {
const monorepoDependencies = Object.keys(deps || {}).filter((dependency) => {
return dependency in versions;
}) as Array<keyof typeof versions>;
return monorepoDependencies.map((dependency) => {
const currentVersion = deps[dependency];
const isPinned = !currentVersion.startsWith('^');
const newVersion = versions[dependency];
return `${dependency}@${isPinned ? '' : '^'}${newVersion}`;
});
};
References/code/lib/cli/src/upgrade.ts
|
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: