@nx/storybook 17.2.4 → 17.2.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/storybook",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.6",
|
|
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": "17.2.
|
|
37
|
-
"@nx/devkit": "17.2.
|
|
38
|
-
"@nx/js": "17.2.
|
|
39
|
-
"@nx/eslint": "17.2.
|
|
40
|
-
"@nrwl/storybook": "17.2.
|
|
36
|
+
"@nx/cypress": "17.2.6",
|
|
37
|
+
"@nx/devkit": "17.2.6",
|
|
38
|
+
"@nx/js": "17.2.6",
|
|
39
|
+
"@nx/eslint": "17.2.6",
|
|
40
|
+
"@nrwl/storybook": "17.2.6"
|
|
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)();
|