@nx/storybook 17.3.0-beta.6 → 17.3.0-beta.8
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.3.0-beta.
|
|
3
|
+
"version": "17.3.0-beta.8",
|
|
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": {
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"migrations": "./migrations.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nx/devkit": "17.3.0-beta.
|
|
33
|
+
"@nx/devkit": "17.3.0-beta.8",
|
|
34
34
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
35
35
|
"semver": "7.5.3",
|
|
36
36
|
"tslib": "^2.3.0",
|
|
37
|
-
"@nx/cypress": "17.3.0-beta.
|
|
38
|
-
"@nx/js": "17.3.0-beta.
|
|
39
|
-
"@nx/eslint": "17.3.0-beta.
|
|
40
|
-
"@nrwl/storybook": "17.3.0-beta.
|
|
37
|
+
"@nx/cypress": "17.3.0-beta.8",
|
|
38
|
+
"@nx/js": "17.3.0-beta.8",
|
|
39
|
+
"@nx/eslint": "17.3.0-beta.8",
|
|
40
|
+
"@nrwl/storybook": "17.3.0-beta.8"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.initGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const update_package_scripts_1 = require("@nx/devkit/src/utils/update-package-scripts");
|
|
5
6
|
const semver_1 = require("semver");
|
|
7
|
+
const plugin_1 = require("../../plugins/plugin");
|
|
6
8
|
const utilities_1 = require("../../utils/utilities");
|
|
7
9
|
const versions_1 = require("../../utils/versions");
|
|
8
10
|
function checkDependenciesInstalled(host, schema) {
|
|
@@ -59,6 +61,9 @@ async function initGenerator(tree, schema) {
|
|
|
59
61
|
tasks.push(moveToDevDependencies(tree));
|
|
60
62
|
tasks.push(checkDependenciesInstalled(tree, schema));
|
|
61
63
|
}
|
|
64
|
+
if (schema.updatePackageScripts) {
|
|
65
|
+
await (0, update_package_scripts_1.updatePackageScripts)(tree, plugin_1.createNodes);
|
|
66
|
+
}
|
|
62
67
|
if (!schema.skipFormat) {
|
|
63
68
|
await (0, devkit_1.formatFiles)(tree);
|
|
64
69
|
}
|
|
@@ -20,6 +20,12 @@
|
|
|
20
20
|
"x-priority": "internal",
|
|
21
21
|
"description": "Keep existing dependencies versions",
|
|
22
22
|
"default": false
|
|
23
|
+
},
|
|
24
|
+
"updatePackageScripts": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"x-priority": "internal",
|
|
27
|
+
"description": "Update `package.json` scripts with inferred targets",
|
|
28
|
+
"default": false
|
|
23
29
|
}
|
|
24
30
|
}
|
|
25
31
|
}
|