@storybook/cli 10.2.5 → 10.2.7
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/dist/_node-chunks/{block-dependencies-versions-HTIU5STO.js → block-dependencies-versions-KQ5VBLA4.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-NAMFFSUF.js → block-experimental-addon-test-DHG22BAE.js} +9 -9
- package/dist/_node-chunks/{block-major-version-GAAPGMY6.js → block-major-version-YLXMSRUK.js} +9 -9
- package/dist/_node-chunks/{block-node-version-TV2DMAZJ.js → block-node-version-PZRRFVXI.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-DPFRA7MU.js → block-webpack5-frameworks-6ZIA56NQ.js} +11 -11
- package/dist/_node-chunks/{chunk-QAGICRVB.js → chunk-4XFXMRK6.js} +7 -7
- package/dist/_node-chunks/{chunk-NOIC43BY.js → chunk-AWLHHVSH.js} +7 -7
- package/dist/_node-chunks/{chunk-B2KDGG2F.js → chunk-F2HZSUUY.js} +15 -15
- package/dist/_node-chunks/chunk-QCE3TXGB.js +11 -0
- package/dist/_node-chunks/{chunk-5UWPLK2N.js → chunk-TY4XO6XR.js} +6 -6
- package/dist/_node-chunks/{globby-ASHOM4KY.js → globby-R4A54J54.js} +8 -8
- package/dist/_node-chunks/{p-limit-HQEHEI25.js → p-limit-A2EBNNV5.js} +7 -7
- package/dist/_node-chunks/{run-B54PWWIG.js → run-B4LF6WVD.js} +90 -38
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-UOO5RJNR.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
findOutdatedPackage
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-F2HZSUUY.js";
|
|
15
|
+
import "./chunk-AWLHHVSH.js";
|
|
16
|
+
import "./chunk-QCE3TXGB.js";
|
|
17
|
+
import "./chunk-4XFXMRK6.js";
|
|
18
|
+
import "./chunk-TY4XO6XR.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-dependencies-versions.ts
|
|
21
21
|
import { dedent } from "ts-dedent";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QCE3TXGB.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4XFXMRK6.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TY4XO6XR.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-experimental-addon-test.ts
|
|
21
21
|
var import_semver = __toESM(require_semver(), 1);
|
package/dist/_node-chunks/{block-major-version-GAAPGMY6.js → block-major-version-YLXMSRUK.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QCE3TXGB.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4XFXMRK6.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TY4XO6XR.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-major-version.ts
|
|
21
21
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QCE3TXGB.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4XFXMRK6.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TY4XO6XR.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-node-version.ts
|
|
21
21
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
findOutdatedPackage
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-F2HZSUUY.js";
|
|
15
|
+
import "./chunk-AWLHHVSH.js";
|
|
16
|
+
import "./chunk-QCE3TXGB.js";
|
|
17
|
+
import "./chunk-4XFXMRK6.js";
|
|
18
|
+
import "./chunk-TY4XO6XR.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-webpack5-frameworks.ts
|
|
21
21
|
var minimalVersionsMap = {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__commonJS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TY4XO6XR.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TY4XO6XR.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/fast-glob/out/utils/array.js
|
|
19
19
|
var require_array = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,14 +12,14 @@ var require = CJS_COMPAT_NODE_MODULE_l8xxni3mikr.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AWLHHVSH.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4XFXMRK6.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TY4XO6XR.js";
|
|
23
23
|
|
|
24
24
|
// ../../../node_modules/picocolors/picocolors.js
|
|
25
25
|
var require_picocolors = __commonJS({
|
|
@@ -122,11 +122,11 @@ var import_picocolors2 = __toESM(require_picocolors(), 1), import_semver = __toE
|
|
|
122
122
|
// src/autoblock/index.ts
|
|
123
123
|
var blockers = () => [
|
|
124
124
|
// add/remove blockers here
|
|
125
|
-
import("./block-dependencies-versions-
|
|
126
|
-
import("./block-node-version-
|
|
127
|
-
import("./block-webpack5-frameworks-
|
|
128
|
-
import("./block-major-version-
|
|
129
|
-
import("./block-experimental-addon-test-
|
|
125
|
+
import("./block-dependencies-versions-KQ5VBLA4.js"),
|
|
126
|
+
import("./block-node-version-PZRRFVXI.js"),
|
|
127
|
+
import("./block-webpack5-frameworks-6ZIA56NQ.js"),
|
|
128
|
+
import("./block-major-version-YLXMSRUK.js"),
|
|
129
|
+
import("./block-experimental-addon-test-DHG22BAE.js")
|
|
130
130
|
], autoblock = async (options, list = blockers()) => list.length === 0 ? null : await Promise.all(
|
|
131
131
|
list.map(async (i) => {
|
|
132
132
|
let blocker = (await i).blocker;
|
|
@@ -340,7 +340,7 @@ var processProject = async ({
|
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
}, collectProjects = async (options, configDirs, onProjectScanStart) => {
|
|
343
|
-
let { default: pLimit } = await import("./p-limit-
|
|
343
|
+
let { default: pLimit } = await import("./p-limit-A2EBNNV5.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
344
344
|
(configDir) => limit(
|
|
345
345
|
() => processProject({
|
|
346
346
|
configDir,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
isGitIgnoredSync,
|
|
22
22
|
isIgnoredByIgnoreFiles,
|
|
23
23
|
isIgnoredByIgnoreFilesSync
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-AWLHHVSH.js";
|
|
25
|
+
import "./chunk-TY4XO6XR.js";
|
|
26
26
|
export {
|
|
27
27
|
convertPathToPattern,
|
|
28
28
|
generateGlobTasks,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-TY4XO6XR.js";
|
|
13
13
|
|
|
14
14
|
// ../../../node_modules/yocto-queue/index.js
|
|
15
15
|
var Node = class {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -25,18 +25,18 @@ import {
|
|
|
25
25
|
shortenPath,
|
|
26
26
|
updateMainConfig,
|
|
27
27
|
upgradeStorybookDependencies
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-F2HZSUUY.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AWLHHVSH.js";
|
|
32
32
|
import {
|
|
33
33
|
require_semver
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-4XFXMRK6.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TY4XO6XR.js";
|
|
40
40
|
|
|
41
41
|
// ../../../node_modules/envinfo/dist/envinfo.js
|
|
42
42
|
var require_envinfo = __commonJS({
|
|
@@ -4716,7 +4716,7 @@ import {
|
|
|
4716
4716
|
isCI as isCI2,
|
|
4717
4717
|
optionalEnvToBoolean as optionalEnvToBoolean3,
|
|
4718
4718
|
removeAddon as remove,
|
|
4719
|
-
versions as
|
|
4719
|
+
versions as versions5
|
|
4720
4720
|
} from "storybook/internal/common";
|
|
4721
4721
|
import { withTelemetry } from "storybook/internal/core-server";
|
|
4722
4722
|
import { CLI_COLORS as CLI_COLORS5, logTracker as logTracker4, logger as logger22 } from "storybook/internal/node-logger";
|
|
@@ -4761,7 +4761,7 @@ function leven(first, second, options) {
|
|
|
4761
4761
|
var import_picocolors16 = __toESM(require_picocolors(), 1);
|
|
4762
4762
|
|
|
4763
4763
|
// package.json
|
|
4764
|
-
var version = "10.2.
|
|
4764
|
+
var version = "10.2.7";
|
|
4765
4765
|
|
|
4766
4766
|
// src/add.ts
|
|
4767
4767
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -5079,6 +5079,7 @@ function isValidVersion(version2) {
|
|
|
5079
5079
|
|
|
5080
5080
|
// src/automigrate/index.ts
|
|
5081
5081
|
var import_picocolors13 = __toESM(require_picocolors(), 1);
|
|
5082
|
+
import { versions as versions3 } from "storybook/internal/common";
|
|
5082
5083
|
import { logTracker as logTracker2, logger as logger16, prompt as prompt3 } from "storybook/internal/node-logger";
|
|
5083
5084
|
import { AutomigrateError } from "storybook/internal/server-errors";
|
|
5084
5085
|
|
|
@@ -5108,18 +5109,18 @@ import { frameworkPackages, rendererPackages } from "storybook/internal/common";
|
|
|
5108
5109
|
|
|
5109
5110
|
// src/doctor/hasMultipleVersions.ts
|
|
5110
5111
|
var import_semver2 = __toESM(require_semver(), 1);
|
|
5111
|
-
function hasMultipleVersions(
|
|
5112
|
-
return
|
|
5112
|
+
function hasMultipleVersions(versions6) {
|
|
5113
|
+
return versions6.find((v) => {
|
|
5113
5114
|
let major = import_semver2.default.major(v);
|
|
5114
5115
|
if (major === 0) {
|
|
5115
5116
|
let minor = import_semver2.default.minor(v);
|
|
5116
5117
|
if (minor === 0) {
|
|
5117
5118
|
let patch = import_semver2.default.patch(v);
|
|
5118
|
-
return
|
|
5119
|
+
return versions6.some((v2) => import_semver2.default.patch(v2) !== patch);
|
|
5119
5120
|
}
|
|
5120
|
-
return
|
|
5121
|
+
return versions6.some((v2) => import_semver2.default.minor(v2) !== minor);
|
|
5121
5122
|
}
|
|
5122
|
-
return
|
|
5123
|
+
return versions6.some((v2) => import_semver2.default.major(v2) !== major);
|
|
5123
5124
|
});
|
|
5124
5125
|
}
|
|
5125
5126
|
|
|
@@ -5624,7 +5625,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
5624
5625
|
import { promises as fs } from "fs";
|
|
5625
5626
|
var maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
|
|
5626
5627
|
async function runCodemod(globPattern = "**/*.{stories,story}.{js,jsx,ts,tsx,mjs,mjsx,mts,mtsx}", transform, { dryRun = !1, skipFormatting = !1 } = {}) {
|
|
5627
|
-
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-
|
|
5628
|
+
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-R4A54J54.js"), files = await globby(slash(globPattern), {
|
|
5628
5629
|
followSymbolicLinks: !0,
|
|
5629
5630
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
5630
5631
|
});
|
|
@@ -5635,7 +5636,7 @@ Please try a different pattern.
|
|
|
5635
5636
|
`
|
|
5636
5637
|
), new Error("No files matched");
|
|
5637
5638
|
try {
|
|
5638
|
-
let pLimit = (await import("./p-limit-
|
|
5639
|
+
let pLimit = (await import("./p-limit-A2EBNNV5.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5639
5640
|
await Promise.all(
|
|
5640
5641
|
files.map(
|
|
5641
5642
|
(file) => limit(async () => {
|
|
@@ -5921,8 +5922,14 @@ ${err}`), info.source;
|
|
|
5921
5922
|
let relativePath = path2.relative(path2.dirname(info.path), previewConfigPath), { dir, name } = path2.parse(relativePath);
|
|
5922
5923
|
previewPath = `${dir ? `${dir}/` : ""}${name}`, previewPath.startsWith(".") || (previewPath = `./${previewPath}`), previewPath = previewPath.replace(/\\/g, "/");
|
|
5923
5924
|
}
|
|
5924
|
-
let sbConfigImportName = hasRootLevelConfig ? "storybookPreview" : "preview", sbConfigImportSpecifier = t4.importDefaultSpecifier(t4.identifier(sbConfigImportName));
|
|
5925
|
+
let sbConfigImportName = hasRootLevelConfig ? "storybookPreview" : "preview", sbConfigImportSpecifier = t4.importDefaultSpecifier(t4.identifier(sbConfigImportName)), namespaceStoryImports = /* @__PURE__ */ new Set(), namedStoryImports = /* @__PURE__ */ new Set();
|
|
5925
5926
|
programNode.body.forEach((node) => {
|
|
5927
|
+
if (t4.isImportDeclaration(node)) {
|
|
5928
|
+
let importPath = node.source.value;
|
|
5929
|
+
/\.stories(\.(ts|tsx|js|jsx|mjs|mts))?$/.test(importPath) && node.specifiers.forEach((specifier) => {
|
|
5930
|
+
t4.isImportNamespaceSpecifier(specifier) ? namespaceStoryImports.add(specifier.local.name) : t4.isImportSpecifier(specifier) ? namedStoryImports.add(specifier.local.name) : t4.isImportDefaultSpecifier(specifier) && namespaceStoryImports.add(specifier.local.name);
|
|
5931
|
+
});
|
|
5932
|
+
}
|
|
5926
5933
|
if (t4.isImportDeclaration(node) && isValidPreviewPath(node.source.value)) {
|
|
5927
5934
|
let defaultImportSpecifier = node.specifiers.find(
|
|
5928
5935
|
(specifier) => t4.isImportDefaultSpecifier(specifier)
|
|
@@ -5930,7 +5937,7 @@ ${err}`), info.source;
|
|
|
5930
5937
|
defaultImportSpecifier ? defaultImportSpecifier.local.name !== sbConfigImportName && (sbConfigImportName = defaultImportSpecifier.local.name) : node.specifiers.push(sbConfigImportSpecifier), previewImport = node;
|
|
5931
5938
|
}
|
|
5932
5939
|
});
|
|
5933
|
-
let hasMeta = !!csf._meta;
|
|
5940
|
+
let hasMeta = !!csf._meta, storyFileImports = /* @__PURE__ */ new Set([...namespaceStoryImports, ...namedStoryImports]);
|
|
5934
5941
|
Object.entries(csf._storyExports).forEach(([exportName, decl]) => {
|
|
5935
5942
|
let id = decl.id, declarator = decl, init = t4.isVariableDeclarator(declarator) ? declarator.init : void 0;
|
|
5936
5943
|
t4.isIdentifier(id) && init && (id.typeAnnotation && (id.typeAnnotation = null), (t4.isTSSatisfiesExpression(init) || t4.isTSAsExpression(init)) && (init = init.expression), t4.isObjectExpression(init) ? (declarator.init = t4.callExpression(
|
|
@@ -5961,6 +5968,11 @@ ${err}`), info.source;
|
|
|
5961
5968
|
)
|
|
5962
5969
|
);
|
|
5963
5970
|
if (traverse3(csf._ast, {
|
|
5971
|
+
/**
|
|
5972
|
+
* Handle SAME-FILE story references.
|
|
5973
|
+
*
|
|
5974
|
+
* Examples: Primary.args → Primary.input.args meta.args → meta.input.args
|
|
5975
|
+
*/
|
|
5964
5976
|
Identifier(nodePath) {
|
|
5965
5977
|
let identifierName = nodePath.node.name, binding = nodePath.scope.getBinding(identifierName);
|
|
5966
5978
|
if (binding && storyExportDecls.has(binding.identifier.name) || identifierName === metaVariableName) {
|
|
@@ -5977,6 +5989,48 @@ ${err}`), info.source;
|
|
|
5977
5989
|
throw err;
|
|
5978
5990
|
}
|
|
5979
5991
|
}
|
|
5992
|
+
},
|
|
5993
|
+
/**
|
|
5994
|
+
* Handle CROSS-FILE story references.
|
|
5995
|
+
*
|
|
5996
|
+
* When we import stories from another file: import * as BaseStories from './Button.stories';
|
|
5997
|
+
*
|
|
5998
|
+
* And use them like: BaseStories.Primary.args
|
|
5999
|
+
*
|
|
6000
|
+
* We need to transform to: BaseStories.Primary.input.args
|
|
6001
|
+
*
|
|
6002
|
+
* Why? Because the imported file will ALSO be transformed to CSF4, where story properties are
|
|
6003
|
+
* accessed via `.input`.
|
|
6004
|
+
*/
|
|
6005
|
+
MemberExpression(nodePath) {
|
|
6006
|
+
let node = nodePath.node, innerObject = node.object;
|
|
6007
|
+
if (t4.isMemberExpression(innerObject)) {
|
|
6008
|
+
let importName = innerObject.object, storyName = innerObject.property, accessedProperty = node.property;
|
|
6009
|
+
if (t4.isIdentifier(importName) && storyFileImports.has(importName.name) && t4.isIdentifier(storyName)) {
|
|
6010
|
+
if (t4.isIdentifier(storyName, { name: "input" }) || !t4.isIdentifier(accessedProperty) || accessedProperty.name === "input" || reuseDisallowList.includes(accessedProperty.name))
|
|
6011
|
+
return;
|
|
6012
|
+
nodePath.node.object = t4.memberExpression(innerObject, t4.identifier("input")), nodePath.skip();
|
|
6013
|
+
}
|
|
6014
|
+
}
|
|
6015
|
+
if (t4.isIdentifier(innerObject) && namedStoryImports.has(innerObject.name)) {
|
|
6016
|
+
let accessedProperty = node.property;
|
|
6017
|
+
if (!t4.isIdentifier(accessedProperty) || accessedProperty.name === "input" || reuseDisallowList.includes(accessedProperty.name))
|
|
6018
|
+
return;
|
|
6019
|
+
nodePath.replaceWith(
|
|
6020
|
+
t4.memberExpression(
|
|
6021
|
+
t4.memberExpression(innerObject, t4.identifier("input")),
|
|
6022
|
+
accessedProperty
|
|
6023
|
+
)
|
|
6024
|
+
), nodePath.skip();
|
|
6025
|
+
return;
|
|
6026
|
+
}
|
|
6027
|
+
if (t4.isIdentifier(innerObject) && namespaceStoryImports.has(innerObject.name)) {
|
|
6028
|
+
let storyName = node.property;
|
|
6029
|
+
if (t4.isIdentifier(storyName, { name: "input" }))
|
|
6030
|
+
return;
|
|
6031
|
+
let parent = nodePath.parent;
|
|
6032
|
+
t4.isSpreadElement(parent) && (nodePath.replaceWith(t4.memberExpression(node, t4.identifier("input"))), nodePath.skip());
|
|
6033
|
+
}
|
|
5980
6034
|
}
|
|
5981
6035
|
}), transformedStoryExports.size === 0)
|
|
5982
6036
|
return logger5.warn(
|
|
@@ -6413,7 +6467,7 @@ var addonA11yParameters = {
|
|
|
6413
6467
|
errors.push({ file: previewFileToUpdate, error });
|
|
6414
6468
|
}
|
|
6415
6469
|
}
|
|
6416
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6470
|
+
let { default: pLimit } = await import("./p-limit-A2EBNNV5.js"), limit = pLimit(10);
|
|
6417
6471
|
if (await Promise.all(
|
|
6418
6472
|
storyFilesToUpdate.map(
|
|
6419
6473
|
(file) => limit(async () => {
|
|
@@ -6567,7 +6621,7 @@ var addonGlobalsApi = {
|
|
|
6567
6621
|
}
|
|
6568
6622
|
};
|
|
6569
6623
|
async function transformStoryFiles(files, options, dryRun) {
|
|
6570
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6624
|
+
let errors = [], { default: pLimit } = await import("./p-limit-A2EBNNV5.js"), limit = pLimit(10);
|
|
6571
6625
|
return await Promise.all(
|
|
6572
6626
|
files.map(
|
|
6573
6627
|
(file) => limit(async () => {
|
|
@@ -6759,7 +6813,7 @@ function transformPackageJson(content) {
|
|
|
6759
6813
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
6760
6814
|
}
|
|
6761
6815
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
6762
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6816
|
+
let errors = [], { default: pLimit } = await import("./p-limit-A2EBNNV5.js"), limit = pLimit(10);
|
|
6763
6817
|
return await Promise.all(
|
|
6764
6818
|
files.map(
|
|
6765
6819
|
(file) => limit(async () => {
|
|
@@ -6798,7 +6852,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
6798
6852
|
dryRun
|
|
6799
6853
|
);
|
|
6800
6854
|
errors.push(...packageJsonErrors);
|
|
6801
|
-
let { globby } = await import("./globby-
|
|
6855
|
+
let { globby } = await import("./globby-R4A54J54.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles(
|
|
6802
6856
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
6803
6857
|
{
|
|
6804
6858
|
...consolidatedPackages,
|
|
@@ -7151,7 +7205,7 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig = async (mainConfigPath
|
|
|
7151
7205
|
]);
|
|
7152
7206
|
}
|
|
7153
7207
|
mainConfigPath && (logger11.debug("Updating main config file..."), await transformMainConfig(mainConfigPath, dryRun)), logger11.debug("Scanning and updating import statements...");
|
|
7154
|
-
let { globby } = await import("./globby-
|
|
7208
|
+
let { globby } = await import("./globby-R4A54J54.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles2(
|
|
7155
7209
|
allFiles,
|
|
7156
7210
|
{
|
|
7157
7211
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7361,7 +7415,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7361
7415
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
7362
7416
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
7363
7417
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
7364
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7418
|
+
let errors = [], { default: pLimit } = await import("./p-limit-A2EBNNV5.js"), limit = pLimit(10);
|
|
7365
7419
|
return await Promise.all(
|
|
7366
7420
|
files.map(
|
|
7367
7421
|
(file) => limit(async () => {
|
|
@@ -7428,7 +7482,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7428
7482
|
continue;
|
|
7429
7483
|
logger13.debug(`
|
|
7430
7484
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
7431
|
-
let { globby } = await import("./globby-
|
|
7485
|
+
let { globby } = await import("./globby-R4A54J54.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
7432
7486
|
await transformSourceFiles(
|
|
7433
7487
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7434
7488
|
rendererPackage,
|
|
@@ -7458,7 +7512,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
7458
7512
|
}
|
|
7459
7513
|
var getDotStorybookReferences = async (searchDir) => {
|
|
7460
7514
|
try {
|
|
7461
|
-
let { globby } = await import("./globby-
|
|
7515
|
+
let { globby } = await import("./globby-R4A54J54.js"), { readFile: readFile10 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
7462
7516
|
onlyFiles: !0,
|
|
7463
7517
|
gitignore: !0
|
|
7464
7518
|
}), referencedFiles = [];
|
|
@@ -7479,7 +7533,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7479
7533
|
async check({ packageManager, mainConfigPath }) {
|
|
7480
7534
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
7481
7535
|
return null;
|
|
7482
|
-
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-
|
|
7536
|
+
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-R4A54J54.js"), requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
7483
7537
|
return existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
7484
7538
|
},
|
|
7485
7539
|
prompt() {
|
|
@@ -7698,14 +7752,12 @@ var logAvailableMigrations = () => {
|
|
|
7698
7752
|
configDir: options.configDir,
|
|
7699
7753
|
packageManagerName: options.packageManager
|
|
7700
7754
|
});
|
|
7701
|
-
if (!versionInstalled)
|
|
7702
|
-
throw new Error("Could not determine Storybook version");
|
|
7703
7755
|
if (!mainConfigPath)
|
|
7704
7756
|
throw new Error("Could not determine main config path");
|
|
7705
7757
|
let outcome = await automigrate({
|
|
7706
7758
|
...options,
|
|
7707
7759
|
packageManager,
|
|
7708
|
-
storybookVersion: versionInstalled,
|
|
7760
|
+
storybookVersion: versionInstalled || versions3.storybook,
|
|
7709
7761
|
mainConfigPath,
|
|
7710
7762
|
mainConfig,
|
|
7711
7763
|
previewConfigPath,
|
|
@@ -7991,7 +8043,7 @@ import {
|
|
|
7991
8043
|
JsPackageManagerFactory,
|
|
7992
8044
|
isCI,
|
|
7993
8045
|
optionalEnvToBoolean as optionalEnvToBoolean2,
|
|
7994
|
-
versions as
|
|
8046
|
+
versions as versions4
|
|
7995
8047
|
} from "storybook/internal/common";
|
|
7996
8048
|
import { logger as logger19, prompt as prompt4 } from "storybook/internal/node-logger";
|
|
7997
8049
|
var import_picocolors14 = __toESM(require_picocolors(), 1), import_semver6 = __toESM(require_semver(), 1);
|
|
@@ -8901,7 +8953,7 @@ var toChoices = (c) => ({ label: allTemplates[c].name, value: c }), sandbox = as
|
|
|
8901
8953
|
force: pkgMgr
|
|
8902
8954
|
}), latestVersion = await packageManager.latestVersion("storybook") ?? "0.0.0", nextVersion = await packageManager.latestVersion("storybook@next") ?? "0.0.0";
|
|
8903
8955
|
logger19.debug(`latestVersion: ${latestVersion}`), logger19.debug(`nextVersion: ${nextVersion}`);
|
|
8904
|
-
let currentVersion =
|
|
8956
|
+
let currentVersion = versions4.storybook, isPrerelease = (0, import_semver6.prerelease)(currentVersion), isOutdated = (0, import_semver6.lt)(currentVersion, isPrerelease ? nextVersion : latestVersion), downloadType = !isOutdated && init ? "after-storybook" : "before-storybook", branch = isPrerelease ? "next" : "main";
|
|
8905
8957
|
logger19.debug(`isPrerelease: ${isPrerelease}`), logger19.debug(`isOutdated: ${isOutdated}`), logger19.debug(`downloadType: ${downloadType}`), logger19.debug(`branch: ${branch}`);
|
|
8906
8958
|
let messages2 = {
|
|
8907
8959
|
welcome: `Creating a Storybook ${import_picocolors14.default.bold(currentVersion)} sandbox..`,
|
|
@@ -9527,7 +9579,7 @@ Upgrade interrupted by user.`), allProjects.length > 1 && await sendMultiUpgrade
|
|
|
9527
9579
|
}
|
|
9528
9580
|
|
|
9529
9581
|
// src/bin/run.ts
|
|
9530
|
-
addToGlobalContext("cliVersion",
|
|
9582
|
+
addToGlobalContext("cliVersion", versions5.storybook);
|
|
9531
9583
|
var handleCommandFailure = (logFilePath) => async (error) => {
|
|
9532
9584
|
error instanceof HandledError2 || logger22.error(String(error));
|
|
9533
9585
|
try {
|
|
@@ -9602,7 +9654,7 @@ command("remove <addon>").description("Remove an addon from your Storybook").add
|
|
|
9602
9654
|
}), options.disableTelemetry || await telemetry2("remove", { addon: addonName, source: "cli" }), logger22.outro("Done!");
|
|
9603
9655
|
}).catch(handleCommandFailure(options.logfile))
|
|
9604
9656
|
);
|
|
9605
|
-
command("upgrade").description(`Upgrade your Storybook packages to v${
|
|
9657
|
+
command("upgrade").description(`Upgrade your Storybook packages to v${versions5.storybook}`).addOption(
|
|
9606
9658
|
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9607
9659
|
Object.values(PackageManagerName2)
|
|
9608
9660
|
)
|
|
@@ -9614,7 +9666,7 @@ command("upgrade").description(`Upgrade your Storybook packages to v${versions4.
|
|
|
9614
9666
|
"upgrade",
|
|
9615
9667
|
{ cliOptions: { ...options, configDir: options.configDir?.[0] } },
|
|
9616
9668
|
async () => {
|
|
9617
|
-
logger22.intro(`Storybook upgrade - v${
|
|
9669
|
+
logger22.intro(`Storybook upgrade - v${versions5.storybook}`), await upgrade(options), logger22.outro("Storybook upgrade completed!");
|
|
9618
9670
|
}
|
|
9619
9671
|
).catch(handleCommandFailure(options.logfile));
|
|
9620
9672
|
});
|
package/dist/bin/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -19,4 +19,4 @@ var [majorNodeVersion, minorNodeVersion] = process.versions.node.split(".").map(
|
|
|
19
19
|
dedent`To run Storybook, you need Node.js version 20.19+ or 22.12+.
|
|
20
20
|
You are currently running Node.js ${process.version}. Please upgrade your Node.js installation.`
|
|
21
21
|
), process.exit(1));
|
|
22
|
-
import("../_node-chunks/run-
|
|
22
|
+
import("../_node-chunks/run-B4LF6WVD.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.7",
|
|
4
4
|
"description": "Storybook CLI: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"!src/**/*"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@storybook/codemod": "10.2.
|
|
40
|
+
"@storybook/codemod": "10.2.7",
|
|
41
41
|
"@types/semver": "^7.7.1",
|
|
42
42
|
"commander": "^14.0.2",
|
|
43
|
-
"create-storybook": "10.2.
|
|
43
|
+
"create-storybook": "10.2.7",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.2.
|
|
45
|
+
"storybook": "10.2.7",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_l8xxni3mikr from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_l8xxni3mikr from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_l8xxni3mikr from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_l8xxni3mikr.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_l8xxni3mikr.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_l8xxni3mikr.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|