@storybook/cli 7.0.0-alpha.37 → 7.0.0-alpha.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -3
- package/dist/generate.js +134 -126
- package/dist/generate.mjs +134 -126
- package/package.json +13 -10
- package/rendererAssets/aurelia/1-Button.stories.ts +5 -5
- package/rendererAssets/aurelia/button.ts +2 -2
- package/rendererAssets/ember/1-Button.stories.js +4 -4
- package/rendererAssets/marko/1-Button.stories.js +2 -2
- package/rendererAssets/marko/Button.marko +1 -1
- package/rendererAssets/mithril/Button.js +2 -2
- package/rendererAssets/mithril/Button.stories.js +6 -6
- package/rendererAssets/mithril/Header.stories.js +2 -2
- package/rendererAssets/mithril/Page.stories.js +2 -2
- package/rendererAssets/preact/Button.jsx +0 -2
- package/rendererAssets/preact/Button.stories.jsx +0 -2
- package/rendererAssets/preact/Header.jsx +4 -6
- package/rendererAssets/preact/Header.stories.jsx +0 -2
- package/rendererAssets/preact/Page.jsx +0 -2
- package/rendererAssets/preact/Page.stories.jsx +0 -2
- package/rendererAssets/vue/Header.vue +3 -12
- package/rendererAssets/vue3/Button.vue +2 -2
- package/rendererAssets/vue3/Header.vue +6 -15
- package/templates/react-native/template-csf/storybook/stories/Button/index.js +4 -4
- package/templates/react-native/template-csf/storybook/stories/CenterView/index.js +4 -4
package/README.md
CHANGED
|
@@ -23,12 +23,26 @@ See the command-line help with `-h` for details.
|
|
|
23
23
|
|
|
24
24
|
## [Yarn](https://github.com/yarnpkg/yarn) support
|
|
25
25
|
|
|
26
|
-
The CLI supports yarn. If you have installed yarn in your system and your project has `yarn.lock` file, it'll detect it and use `yarn`
|
|
26
|
+
The CLI supports yarn. If you have installed yarn in your system and your project has a `yarn.lock` file, it'll detect it and use `yarn` to install dependencies.
|
|
27
27
|
|
|
28
|
-
If you don't want to use `yarn` always you can use the `--
|
|
28
|
+
If you don't want to use `yarn` always you can use the `--package-manager` option like this:
|
|
29
29
|
|
|
30
30
|
```sh
|
|
31
|
-
npx sb init --
|
|
31
|
+
npx sb init --package-manager=npm
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
If you would like to force a particular version of yarn, you can use the `--package-manager` flag with a value of `yarn1` or `yarn2`.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## [PNPM](https://pnpm.io/) support
|
|
39
|
+
|
|
40
|
+
The CLI supports pnpm. If you have installed pnpm in your system and your project has a `pnpm-lock.yaml` file, it'll detect it and use `pnpm` to install dependencies.
|
|
41
|
+
|
|
42
|
+
If you don't have a lock file and would like to force pnpm to be used, you can use the `--package-manager` option like this:
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
npx sb init --package-manager=pnpm
|
|
32
46
|
```
|
|
33
47
|
|
|
34
48
|
---
|