@nx/storybook 17.2.4 → 17.2.5
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
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
<p style="text-align: center;"
|
|
1
|
+
<p style="text-align: center;">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
|
|
4
|
+
<img alt="Nx - Smart Monorepos · Fast CI" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
2
7
|
|
|
3
8
|
<div style="text-align: center;">
|
|
4
9
|
|
|
@@ -15,9 +20,9 @@
|
|
|
15
20
|
|
|
16
21
|
<hr>
|
|
17
22
|
|
|
18
|
-
# Nx: Smart
|
|
23
|
+
# Nx: Smart Monorepos · Fast CI
|
|
19
24
|
|
|
20
|
-
Nx is a
|
|
25
|
+
Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
|
|
21
26
|
|
|
22
27
|
This package is a [Storybook plugin for Nx](https://nx.dev/packages/storybook).
|
|
23
28
|
|
|
@@ -59,5 +64,5 @@ npx nx@latest init
|
|
|
59
64
|
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
60
65
|
|
|
61
66
|
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
62
|
-
width="100%" alt="Nx - Smart
|
|
67
|
+
width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
|
|
63
68
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/storybook",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "v17.2.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Storybook contains executors and generators for allowing your workspace to use the powerful Storybook integration testing & documenting capabilities.",
|
|
6
6
|
"repository": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
34
34
|
"semver": "7.5.3",
|
|
35
35
|
"tslib": "^2.3.0",
|
|
36
|
-
"@nx/cypress": "
|
|
37
|
-
"@nx/devkit": "
|
|
38
|
-
"@nx/js": "
|
|
39
|
-
"@nx/eslint": "
|
|
40
|
-
"@nrwl/storybook": "
|
|
36
|
+
"@nx/cypress": "v17.2.5",
|
|
37
|
+
"@nx/devkit": "v17.2.5",
|
|
38
|
+
"@nx/js": "v17.2.5",
|
|
39
|
+
"@nx/eslint": "v17.2.5",
|
|
40
|
+
"@nrwl/storybook": "v17.2.5"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
@@ -5,7 +5,7 @@ const build = require("@storybook/core-server");
|
|
|
5
5
|
const utilities_1 = require("../../utils/utilities");
|
|
6
6
|
async function buildStorybookExecutor(options, context) {
|
|
7
7
|
(0, utilities_1.storybookConfigExistsCheck)(options.configDir, context.projectName);
|
|
8
|
-
const storybook7 = (0, utilities_1.storybookMajorVersion)()
|
|
8
|
+
const storybook7 = (0, utilities_1.storybookMajorVersion)() >= 7;
|
|
9
9
|
if (!storybook7) {
|
|
10
10
|
throw (0, utilities_1.pleaseUpgrade)();
|
|
11
11
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const build = require("@storybook/core-server");
|
|
4
4
|
const utilities_1 = require("../../utils/utilities");
|
|
5
5
|
async function* storybookExecutor(options, context) {
|
|
6
|
-
const storybook7 = (0, utilities_1.storybookMajorVersion)()
|
|
6
|
+
const storybook7 = (0, utilities_1.storybookMajorVersion)() >= 7;
|
|
7
7
|
if (!storybook7) {
|
|
8
8
|
throw (0, utilities_1.pleaseUpgrade)();
|
|
9
9
|
}
|
|
@@ -15,7 +15,7 @@ function checkDependenciesInstalled(host, schema) {
|
|
|
15
15
|
// base deps
|
|
16
16
|
devDependencies['@nx/storybook'] = versions_1.nxVersion;
|
|
17
17
|
let storybook7VersionToInstall = versions_1.storybookVersion;
|
|
18
|
-
if ((0, utilities_1.storybookMajorVersion)()
|
|
18
|
+
if ((0, utilities_1.storybookMajorVersion)() >= 7 &&
|
|
19
19
|
(0, utilities_1.getInstalledStorybookVersion)() &&
|
|
20
20
|
(0, semver_1.gte)((0, utilities_1.getInstalledStorybookVersion)(), '7.0.0')) {
|
|
21
21
|
storybook7VersionToInstall = (0, utilities_1.getInstalledStorybookVersion)();
|