@nx/storybook 22.0.0-beta.2 → 22.0.0-beta.3
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": "22.0.0-beta.
|
|
3
|
+
"version": "22.0.0-beta.3",
|
|
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,16 +33,16 @@
|
|
|
33
33
|
"migrations": "./migrations.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@nx/devkit": "22.0.0-beta.
|
|
36
|
+
"@nx/devkit": "22.0.0-beta.3",
|
|
37
37
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
38
38
|
"semver": "^7.5.3",
|
|
39
39
|
"tslib": "^2.3.0",
|
|
40
|
-
"@nx/cypress": "22.0.0-beta.
|
|
41
|
-
"@nx/js": "22.0.0-beta.
|
|
42
|
-
"@nx/eslint": "22.0.0-beta.
|
|
40
|
+
"@nx/cypress": "22.0.0-beta.3",
|
|
41
|
+
"@nx/js": "22.0.0-beta.3",
|
|
42
|
+
"@nx/eslint": "22.0.0-beta.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"nx": "22.0.0-beta.
|
|
45
|
+
"nx": "22.0.0-beta.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"storybook": ">=7.0.0 <10.0.0"
|
package/src/plugins/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateDependencies,
|
|
1
|
+
import { CreateDependencies, CreateNodesV2 } from '@nx/devkit';
|
|
2
2
|
export interface StorybookPluginOptions {
|
|
3
3
|
buildStorybookTargetName?: string;
|
|
4
4
|
serveStorybookTargetName?: string;
|
|
@@ -9,6 +9,6 @@ export interface StorybookPluginOptions {
|
|
|
9
9
|
* @deprecated The 'createDependencies' function is now a no-op. This functionality is included in 'createNodesV2'.
|
|
10
10
|
*/
|
|
11
11
|
export declare const createDependencies: CreateDependencies;
|
|
12
|
+
export declare const createNodes: CreateNodesV2<StorybookPluginOptions>;
|
|
12
13
|
export declare const createNodesV2: CreateNodesV2<StorybookPluginOptions>;
|
|
13
|
-
export declare const createNodes: CreateNodes<StorybookPluginOptions>;
|
|
14
14
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/storybook/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/storybook/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAGlB,aAAa,EAOd,MAAM,YAAY,CAAC;AAYpB,MAAM,WAAW,sBAAsB;IACrC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAeD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAEhC,CAAC;AAIF,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,sBAAsB,CA4B7D,CAAC;AAEF,eAAO,MAAM,aAAa,uCAAc,CAAC"}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createNodesV2 = exports.createNodes = exports.createDependencies = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const get_named_inputs_1 = require("@nx/devkit/src/utils/get-named-inputs");
|
|
@@ -25,7 +25,7 @@ const createDependencies = () => {
|
|
|
25
25
|
};
|
|
26
26
|
exports.createDependencies = createDependencies;
|
|
27
27
|
const storybookConfigGlob = '**/.storybook/main.{js,ts,mjs,mts,cjs,cts}';
|
|
28
|
-
exports.
|
|
28
|
+
exports.createNodes = [
|
|
29
29
|
storybookConfigGlob,
|
|
30
30
|
async (configFilePaths, options, context) => {
|
|
31
31
|
const normalizedOptions = normalizeOptions(options);
|
|
@@ -40,13 +40,7 @@ exports.createNodesV2 = [
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
];
|
|
43
|
-
exports.
|
|
44
|
-
storybookConfigGlob,
|
|
45
|
-
(configFilePath, options, context) => {
|
|
46
|
-
devkit_1.logger.warn('`createNodes` is deprecated. Update your plugin to utilize createNodesV2 instead. In Nx 20, this will change to the createNodesV2 API.');
|
|
47
|
-
return createNodesInternal(configFilePath, normalizeOptions(options), context, {});
|
|
48
|
-
},
|
|
49
|
-
];
|
|
43
|
+
exports.createNodesV2 = exports.createNodes;
|
|
50
44
|
async function createNodesInternal(configFilePath, options, context, targetsCache) {
|
|
51
45
|
let projectRoot = '';
|
|
52
46
|
if (configFilePath.includes('/.storybook')) {
|