-
Notifications
You must be signed in to change notification settings - Fork 1
/
migration-storybook.log
185 lines (168 loc) ยท 27.3 KB
/
migration-storybook.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
๐ checking possible migrations..
๐ found a 'new-frameworks' migration:
โญ Automigration detected โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ We've detected your project is not fully setup with the new framework format, which was introduced in Storybook 7. โ
โ โ
โ Storybook 7 introduced the concept of frameworks, which abstracts configuration for renderers (e.g. React, Vue), builders (e.g. Webpack, โ
โ Vite) and defaults to make integrations easier. โ
โ โ
โ Your project should be updated to use Storybook's framework: @storybook/angular. We can attempt to do this for you automatically. โ
โ โ
โ Here are the steps this migration will do to migrate your project: โ
โ - Remove the following dependencies: โ
โ - * @storybook/builder-webpack5 โ
โ - * @storybook/manager-webpack5 โ
โ โ
โ โ
โ To learn more about the new framework format, see: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-framework-api โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
? Do you want to run the 'new-frameworks' migration on your project? โบ (Y/n)โ Do you want to run the 'new-frameworks' migration on your project? โฆ yes
โ
Removing dependencies: @storybook/builder-webpack5, @storybook/manager-webpack5
โ
Updating main.js
โ
Updating "framework" field
โ
ran new-frameworks migration
๐ found a 'mdx-to-csf' migration:
โญ Automigration detected โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ We've detected your project has one or more globs in your 'stories' config that matches .stories.mdx files: โ
โ "**/*.stories.@(js|jsx|ts|tsx|mdx)" โ
โ โ
โ In Storybook 7, we have deprecated defining stories in MDX files, and consequently have changed the suffix to simply .mdx. Since Storybook โ
โ 8, we have removed the support of story definition in MDX files entirely. Therefore '.stories.mdx' files aren't supported anymore. โ
โ โ
โ Now, since Storybook 8.0, we have removed support for .stories.mdx files. โ
โ โ
โ We can automatically migrate your 'stories' config to include any .mdx file instead of just .stories.mdx. โ
โ That would result in the following 'stories' config: โ
โ "**/*.@(mdx|stories.@(js|jsx|ts|tsx))" โ
โ โ
โ Additionally, we will run the 'mdx-to-csf' codemod for you, which tries to transform '*.stories.mdx' files to '*.stories.js' and '*.mdx' โ
โ files. โ
โ โ
โ To learn more about this change, see: https://storybook.js.org/docs/migration-guide#storiesmdx-to-mdxcsf โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
? Do you want to run the 'mdx-to-csf' migration on your project? โบ (Y/n)โ Do you want to run the 'mdx-to-csf' migration on your project? โฆ yes
โ
Setting 'stories' config:
[
"**/*.@(mdx|stories.@(js|jsx|ts|tsx))"
]
? Please enter the glob for your MDX stories โบ ./src/**/*.stories.mdx? Please enter the glob for your MDX stories โบ .? Please enter the glob for your MDX stories โบ ./src/**/*.stories.mdx? Please enter the glob for your MDX stories โบ *? Please enter the glob for your MDX stories โบ **? Please enter the glob for your MDX stories โบ **/? Please enter the glob for your MDX stories โบ **/*? Please enter the glob for your MDX stories โบ **/*.? Please enter the glob for your MDX stories โบ **/*.s? Please enter the glob for your MDX stories โบ **/*.st? Please enter the glob for your MDX stories โบ **/*.sto? Please enter the glob for your MDX stories โบ **/*.stor? Please enter the glob for your MDX stories โบ **/*.stori? Please enter the glob for your MDX stories โบ **/*.storie? Please enter the glob for your MDX stories โบ **/*.stories? Please enter the glob for your MDX stories โบ **/*.stories.? Please enter the glob for your MDX stories โบ **/*.stories.m? Please enter the glob for your MDX stories โบ **/*.stories.? Please enter the glob for your MDX stories โบ **/*.stories? Please enter the glob for your MDX stories โบ **/*.storie? Please enter the glob for your MDX stories โบ **/*.stori? Please enter the glob for your MDX stories โบ **/*.stor? Please enter the glob for your MDX stories โบ **/*.sto? Please enter the glob for your MDX stories โบ **/*.st? Please enter the glob for your MDX stories โบ **/*.s? Please enter the glob for your MDX stories โบ **/*.? Please enter the glob for your MDX stories โบ **/*? Please enter the glob for your MDX stories โบ **/? Please enter the glob for your MDX stories โบ **? Please enter the glob for your MDX stories โบ *? Please enter the glob for your MDX stories โบ ./src/**/*.stories.mdx? Please enter the glob for your MDX stories โบ *? Please enter the glob for your MDX stories โบ **? Please enter the glob for your MDX stories โบ **/? Please enter the glob for your MDX stories โบ **/*? Please enter the glob for your MDX stories โบ **/*.? Please enter the glob for your MDX stories โบ **/*.s? Please enter the glob for your MDX stories โบ **/*.st? Please enter the glob for your MDX stories โบ **/*.sto? Please enter the glob for your MDX stories โบ **/*.stor? Please enter the glob for your MDX stories โบ **/*.stori? Please enter the glob for your MDX stories โบ **/*.storie? Please enter the glob for your MDX stories โบ **/*.stories? Please enter the glob for your MDX stories โบ **/*.stories.? Please enter the glob for your MDX stories โบ **/*.stories.m? Please enter the glob for your MDX stories โบ **/*.stories.md? Please enter the glob for your MDX stories โบ **/*.stories.mdxโ Please enter the glob for your MDX stories โฆ **/*.stories.mdx
=> Applying mdx-to-csf: 0 files
=> No matching files for glob: **/*.stories.mdx
The migration successfully updated your 'stories' config to include any .mdx file instead of just .stories.mdx.
It also ran the 'mdx-to-csf' codemod to convert your MDX stories to CSF format.
This codemod is not perfect however, so you may need to manually fix any issues it couldn't handle.
โ
ran mdx-to-csf 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? โบ (Y/n)โ Do you want to run the 'autodocsTrue' migration on your project? โฆ yes
โ
Setting 'docs.autodocs' to true in main.js
โ
ran autodocsTrue migration
๐ found a 'remove-react-dependency' migration:
โญ Manual migration detected โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ We detected that your project has a dependency for "react" that it might not need. โ
โ Nothing breaks by having it, you can safely ignore this message, if you wish. โ
โ โ
โ Storybook asked you to add "react" as a direct dependency in the past when upgrading from Storybook 6 to 7. โ
โ However, since version 8.0, Storybook no longer requires you to provide "react" as a dependency. โ
โ Some community addons might still wrongfully list "react" and "react-dom" as required peer dependencies, but since Storybook 7.6 it should โ
โ not be needed in the majority of cases. โ
โ โ
โ If you know you are not using React outside of Storybook, it should be safe to remove the "react" and "react-dom" dependencies from your โ
โ project's package.json. โ
โ Storybook cannot do this automatically as removing it might break your project, so it should be done manually with care. โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
? Select continue once you have made the required changes, or quit to exit the migration process โบ quit / continueโ Select continue once you have made the required changes, or quit to exit the migration process โฆ quit / continue
๐ found a 'upgradeStorybookRelatedDependencies' migration:
โญ Automigration detected โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ You're upgrading to the latest version of Storybook. We recommend upgrading the following packages: โ
โ - eslint-plugin-storybook: 0.6.15 => 0.8.0 โ
โ โ
โ After upgrading, we will run the dedupe command, which could possibly have effects on dependencies that are not Storybook related. โ
โ see: https://docs.npmjs.com/cli/commands/npm-dedupe โ
โ โ
โ Do you want to proceed (upgrade the detected packages)? โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
? Do you want to run the 'upgradeStorybookRelatedDependencies' migration on your project? โบ (y/N)โ Do you want to run the 'upgradeStorybookRelatedDependencies' migration on your project? โฆ yes
Installing dependencies...
We upgraded 1 packages:
- eslint-plugin-storybook: 0.6.15 => 0.8.0
โ
ran upgradeStorybookRelatedDependencies migration
๐ found a 'visual-tests-addon' migration:
โญ Automigration detected โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ New to Storybook 8: Storybook's Visual Tests addon helps you catch unintentional changes/bugs in your stories. The addon is powered by โ
โ Chromatic, a cloud-based testing tool developed by Storybook's core team. โ
โ โ
โ Learn more: https://storybook.js.org/docs/writing-tests/visual-testing โ
โ โ
โ Install Visual Tests addon in your project? โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
? Do you want to run the 'visual-tests-addon' migration on your project? โบ (Y/n)โ Do you want to run the 'visual-tests-addon' migration on your project? โฆ no
โ ๏ธ failed to check fix autodocs-tags
Error: โ Failed to remove the deprecated docs.autodocs setting from .storybook/main.ts.
There is no preview config file in which to add the autodocs tag.
Please perform the migration by hand: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-docsautodocs-is-deprecated
at Object.check (/Users/johnnycopes/.npm/_npx/bc7e1e37fcb46ffc/node_modules/storybook/dist/generate.cjs:586:542)
at runFixes (/Users/johnnycopes/.npm/_npx/bc7e1e37fcb46ffc/node_modules/storybook/dist/generate.cjs:663:2922)
at async automigrate (/Users/johnnycopes/.npm/_npx/bc7e1e37fcb46ffc/node_modules/storybook/dist/generate.cjs:663:1620)
at async doUpgrade (/Users/johnnycopes/.npm/_npx/bc7e1e37fcb46ffc/node_modules/storybook/dist/generate.cjs:679:1608)
at async withTelemetry (/Users/johnnycopes/.npm/_npx/bc7e1e37fcb46ffc/node_modules/@storybook/core/dist/core-server/index.cjs:255711:12)
at async upgrade (/Users/johnnycopes/.npm/_npx/bc7e1e37fcb46ffc/node_modules/storybook/dist/generate.cjs:679:2075)
โญ Migration check ran with failures โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Successful migrations: โ
โ โ
โ new-frameworks, mdx-to-csf, autodocsTrue, upgradeStorybookRelatedDependencies โ
โ โ
โ Failed migrations: โ
โ โ
โ autodocs-tags: โ
โ โ Failed to remove the deprecated docs.autodocs setting from .storybook/main.ts. โ
โ โ
โ There is no preview config file in which to add the autodocs tag. โ
โ โ
โ Please perform the migration by hand: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-docsautodocs-is-deprecated โ
โ โ
โ You can find the full logs in /Users/johnnycopes/Development/atocha/migration-storybook.log โ
โ โ
โ Manual migrations: โ
โ โ
โ remove-react-dependency โ
โ โ
โ Skipped migrations: โ
โ โ
โ visual-tests-addon โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ If you'd like to run the migrations again, you can do so by running 'npx storybook 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/docs/8.0/migration-guide โ
โ And reach out on Discord if you need help: https://discord.gg/storybook โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ