📝 docs(storybook): Replace storybook/main.js in storybook/main.ts
Replace storybook/main.js in the document with the actual storybook/main.ts generated
Summary
Related Links
Checklist
- [x] I have added changeset via
pnpm run change. - [x] I have updated the documentation.
- [x] I have added tests to cover my changes.
⚠️ No Changeset found
Latest commit: 5e184d08bb8ded47bfa4aebfe8756b292a03330a
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The command npx modern new generates .storybook\main.ts instead of .storybook\main.js in the document
Also, I noticed that the documentation Use Storybook states
该命令会创建好 Storybook 常用的模版,包括
- 创建配置文件夹 .storybook,以及默认配置文件 .storybook/main.ts
- 创建 stories 组件示例
- 更新 package.json,新增依赖 @storybook/addon-essential 和 @modern-js/storybook,以及创建 storybook 相关脚本。
Then . storybook/main.js in the document is not a product of npx modern new