Repository: storybook
Issue: [Bug]: Upgrade to 7 not working (no packages changed)
Labels: bug,needs triage

### Describe the bug

I tried upgrading to 7 and ran the command `npx storybook@latest upgrade`.

Afterwards only `.storybook/main.js` changed and nothing else.

```
(base) moritzkaiser@Moritzs-MacBook-Pro mde-components % npx storybook@latest upgrade
 • Checking for latest versions of '@storybook/*' packagesinfo ,,/bin/sh: -c: line 0: syntax error near unexpected token `('
info /bin/sh: -c: line 0: `npx npm-check-updates@latest /storybook/ --upgrade --target latest --reject /(preset-create-react-app|@nrwl/storybook|@nx/storybook)/'
info 
info ,,/bin/sh: -c: line 0: syntax error near unexpected token `('
info /bin/sh: -c: line 0: `npx npm-check-updates@latest sb --upgrade --target latest --reject /(preset-create-react-app|@nrwl/storybook|@nx/storybook)/'
info 
 • Installing upgrades • Preparing to install dependencies. ✓



up to date, audited 3154 packages in 6s

298 packages are looking for funding
  run `npm fund` for details

133 vulnerabilities (1 low, 91 moderate, 35 high, 6 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
. ✓
🔎 checking possible migrations..

🔎 found a 'mdx1to2' migration:
╭ Automigration detected ──────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                  │
│   We've found 9 '.stories.mdx' files in your project.                                                            │
│                                                                                                                  │
│   Storybook has upgraded to MDX2 (https://mdxjs.com/blog/v2/), which contains breaking changes from MDX1.        │
│   We can try to automatically upgrade your MDX files to MDX2 format using some common patterns.                  │
│                                                                                                                  │
│   After this install completes, and before you start Storybook, we strongly recommend reading the MDX2 section   │
│   of the 7.0 migration guide. It contains useful tools for detecting and fixing any remaining issues.            │
│                                                                                                                  │
│   https://storybook.js.org/migration-guides/7.0                                                                  │
│                                                                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
✔ Do you want to run the 'mdx1to2' migration on your project? … yes
🆗 Unmodified GettingStarted.stories.mdx
🆗 Unmodified Idam.stories.mdx
🆗 Unmodified General.stories.mdx
🆗 Unmodified Search.stories.mdx
🆗 Unmodified Team.stories.mdx
🆗 Unmodified ChangeLog.stories.mdx
🆗 Unmodified General.stories.mdx
🆗 Unmodified AlertContextProvider.stories.mdx
🆗 Unmodified Ceres.stories.mdx
✅ ran mdx1to2 migration

🔎 found a 'autodocsTrue' migration:
╭ Automigration detected ────────────────────────────────────────────────────────────────────────────╮
│                                                                                                    │
│   We've changed the configuration of autodocs (previous docsPage), so now the value:               │
│     - docs.autodocs: true -- means automatically create docs for every CSF file                    │
│     - docs.autodocs: 'tag' -- means only create autodocs for CSF files with the 'autodocs' tag     │
│     - docs.autodocs: false -- means never create autodocs                                          │
│                                                                                                    │
│   Based on your prior configuration,  we can set the `docs.autodocs` to keep your old behaviour:   │
│                                                                                                    │
│   docs: { autodocs: true }                                                                         │
│                                                                                                    │
│   More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#autodocs-changes      │
│                                                                                                    │
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯
✔ Do you want to run the 'autodocsTrue' migration on your project? … yes
✅ Setting 'docs.autodocs' to true in main.js
✅ ran autodocsTrue migration

╭ Migration check ran successfully ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                               │
│   Successful migrations:                                                                                                                                      │
│                                                                                                                                                               │
│   mdx1to2, autodocsTrue                                                                                                                                       │
│                                                                                                                                                               │
│   ─────────────────────────────────────────────────                                                                                                           │
│                                                                                                                                                               │
│   If you'd like to run the migrations again, you can do so by running 'npx storybook@next automigrate'                                                        │
│                                                                                                                                                               │
│   The automigrations try to migrate common patterns in your project, but might not contain everything needed to migrate to the latest version of Storybook.   │
│                                                                                                                                                               │
│   Please check the changelog and migration guide for manual migrations and more information: https://storybook.js.org/migration-guides/7.0                    │
│   And reach out on Discord if you need help: https://discord.gg/storybook                                                                                     │
│                                                                                                                                                               │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯


attention => Storybook now collects completely anonymous telemetry regarding usage.
This information is used to shape Storybook's roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://storybook.js.org/telemetry
```

### To Reproduce

_No response_

### System

```shell
Environment Info:

  System:
    OS: macOS 13.4.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.14.2/bin/yarn
    npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
  Browsers:
    Chrome: 114.0.5735.198
    Safari: 16.5.1
  npmPackages:
    @storybook/addon-actions: ^6.5.14 => 6.5.14 
    @storybook/addon-essentials: ^6.5.14 => 6.5.14 
    @storybook/addon-links: ^6.5.14 => 6.5.14 
    @storybook/addon-storysource: ^6.5.14 => 6.5.14 
    @storybook/react: ^6.5.14 => 6.5.14
```


### Additional context

_No response_