storybookjs/storybook

[Bug]: migrate csf-2-to-3 does not work for CSF1

Offen

#22.408 geöffnet am 05.05.2023

 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (10.058 Forks)batch import
bugclihelp wantedsev:S4

Repository-Metriken

Stars
 (89.909 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 7T 22h) (184 gemergte PRs in 30 T)

Beschreibung

Describe the bug

After executing the command, the blank line of the file is deleted without any migration modification

 npx storybook@latest migrate csf-2-to-3 --glob="src/**/*.stories.js"

pic for result image image

To Reproduce

No response

System

Environment Info:

  System:
    OS: macOS 12.3.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 16.13.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.1.2 - /usr/local/bin/npm
  Browsers:
    Chrome: 112.0.5615.137
    Firefox: 110.0.1
    Safari: 15.4
  npmPackages:
    @storybook/addon-actions: ^7.0.7 => 7.0.8
    @storybook/addon-console: ^1.2.3 => 1.2.3
    @storybook/addon-links: ^7.0.7 => 7.0.8
    @storybook/addons: ^7.0.7 => 7.0.8
    @storybook/cli: ^7.0.7 => 7.0.8
    @storybook/client-api: ^7.0.7 => 7.0.8
    @storybook/react: ^7.0.7 => 7.0.8
    @storybook/react-webpack5: ^7.0.7 => 7.0.8
    @storybook/theming: ^7.0.7 => 7.0.8

Additional context

No response

Contributor Guide