@nx/storybook 19.6.0-beta.0 → 19.6.0-beta.2
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": "19.6.0-beta.
|
|
3
|
+
"version": "19.6.0-beta.2",
|
|
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,14 +33,14 @@
|
|
|
33
33
|
"migrations": "./migrations.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@nx/devkit": "19.6.0-beta.
|
|
36
|
+
"@nx/devkit": "19.6.0-beta.2",
|
|
37
37
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
38
38
|
"semver": "^7.5.3",
|
|
39
39
|
"tslib": "^2.3.0",
|
|
40
|
-
"@nx/cypress": "19.6.0-beta.
|
|
41
|
-
"@nx/js": "19.6.0-beta.
|
|
42
|
-
"@nx/eslint": "19.6.0-beta.
|
|
43
|
-
"@nrwl/storybook": "19.6.0-beta.
|
|
40
|
+
"@nx/cypress": "19.6.0-beta.2",
|
|
41
|
+
"@nx/js": "19.6.0-beta.2",
|
|
42
|
+
"@nx/eslint": "19.6.0-beta.2",
|
|
43
|
+
"@nrwl/storybook": "19.6.0-beta.2"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
@@ -4,8 +4,9 @@ exports.default = storybookExecutor;
|
|
|
4
4
|
const build = require("@storybook/core-server");
|
|
5
5
|
const utilities_1 = require("../../utils/utilities");
|
|
6
6
|
async function* storybookExecutor(options, context) {
|
|
7
|
-
const
|
|
8
|
-
|
|
7
|
+
const sbVersion = (0, utilities_1.storybookMajorVersion)();
|
|
8
|
+
const sbLessThan7 = sbVersion < 7 && sbVersion > 0;
|
|
9
|
+
if (sbLessThan7) {
|
|
9
10
|
throw (0, utilities_1.pleaseUpgrade)();
|
|
10
11
|
}
|
|
11
12
|
(0, utilities_1.storybookConfigExistsCheck)(options.configDir, context.projectName);
|
package/src/utils/utilities.js
CHANGED
|
@@ -214,7 +214,7 @@ function getTsSourceFile(host, path) {
|
|
|
214
214
|
}
|
|
215
215
|
function pleaseUpgrade() {
|
|
216
216
|
return `
|
|
217
|
-
Storybook 6
|
|
217
|
+
Storybook 6 and lower are no longer maintained, and not supported in Nx.
|
|
218
218
|
Please upgrade to Storybook 7.
|
|
219
219
|
|
|
220
220
|
Here is a guide on how to upgrade:
|