@storybook/cli 10.1.0-alpha.13 → 10.1.0-alpha.14
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-SS4BDH5O.js → block-dependencies-versions-GFZDNMXP.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-P7QACEDC.js → block-experimental-addon-test-FWXUXFUE.js} +9 -9
- package/dist/_node-chunks/{block-major-version-VZZEBR2I.js → block-major-version-37GK675V.js} +9 -9
- package/dist/_node-chunks/{block-node-version-GTG6EMC6.js → block-node-version-HAMZHMSD.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-5M5LRWBZ.js → block-webpack5-frameworks-GEAM6IIW.js} +11 -11
- package/dist/_node-chunks/{chunk-6W4VQEQU.js → chunk-23UYWTSY.js} +7 -7
- package/dist/_node-chunks/chunk-33JRFMRW.js +11 -0
- package/dist/_node-chunks/{chunk-F7UQW24R.js → chunk-J6LXDUE5.js} +6 -6
- package/dist/_node-chunks/{chunk-7YBSMZ26.js → chunk-OTI54WS2.js} +15 -15
- package/dist/_node-chunks/{chunk-LDMUFWYZ.js → chunk-XFKZCQMA.js} +7 -7
- package/dist/_node-chunks/{globby-ZADA2ALJ.js → globby-WYMRW2VB.js} +8 -8
- package/dist/_node-chunks/{p-limit-DSW6PYCD.js → p-limit-LSWSIOQ6.js} +7 -7
- package/dist/_node-chunks/{run-VPUT3EEF.js → run-BRPD533S.js} +142 -43
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-XAG3F7AB.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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-OTI54WS2.js";
|
|
15
|
+
import "./chunk-23UYWTSY.js";
|
|
16
|
+
import "./chunk-33JRFMRW.js";
|
|
17
|
+
import "./chunk-XFKZCQMA.js";
|
|
18
|
+
import "./chunk-J6LXDUE5.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_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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-33JRFMRW.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XFKZCQMA.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-J6LXDUE5.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-VZZEBR2I.js → block-major-version-37GK675V.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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-33JRFMRW.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XFKZCQMA.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-J6LXDUE5.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_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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-33JRFMRW.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XFKZCQMA.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-J6LXDUE5.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_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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-OTI54WS2.js";
|
|
15
|
+
import "./chunk-23UYWTSY.js";
|
|
16
|
+
import "./chunk-33JRFMRW.js";
|
|
17
|
+
import "./chunk-XFKZCQMA.js";
|
|
18
|
+
import "./chunk-J6LXDUE5.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-webpack5-frameworks.ts
|
|
21
21
|
var minimalVersionsMap = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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-J6LXDUE5.js";
|
|
17
17
|
|
|
18
18
|
// ../../node_modules/fast-glob/out/utils/array.js
|
|
19
19
|
var require_array = __commonJS({
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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_87zcmh4d65e.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-23UYWTSY.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XFKZCQMA.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-J6LXDUE5.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-GFZDNMXP.js"),
|
|
126
|
+
import("./block-node-version-HAMZHMSD.js"),
|
|
127
|
+
import("./block-webpack5-frameworks-GEAM6IIW.js"),
|
|
128
|
+
import("./block-major-version-37GK675V.js"),
|
|
129
|
+
import("./block-experimental-addon-test-FWXUXFUE.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;
|
|
@@ -325,7 +325,7 @@ var processProject = async ({
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
}, collectProjects = async (options, configDirs, onProjectScanStart) => {
|
|
328
|
-
let { default: pLimit } = await import("./p-limit-
|
|
328
|
+
let { default: pLimit } = await import("./p-limit-LSWSIOQ6.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
329
329
|
(configDir) => limit(
|
|
330
330
|
() => processProject({
|
|
331
331
|
configDir,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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-J6LXDUE5.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_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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-23UYWTSY.js";
|
|
25
|
+
import "./chunk-J6LXDUE5.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_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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-J6LXDUE5.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_vdk4xgel7ce from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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-OTI54WS2.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-23UYWTSY.js";
|
|
32
32
|
import {
|
|
33
33
|
require_semver
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-XFKZCQMA.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-J6LXDUE5.js";
|
|
40
40
|
|
|
41
41
|
// ../../node_modules/envinfo/dist/envinfo.js
|
|
42
42
|
var require_envinfo = __commonJS({
|
|
@@ -4712,6 +4712,7 @@ import { globalSettings } from "storybook/internal/cli";
|
|
|
4712
4712
|
import {
|
|
4713
4713
|
HandledError as HandledError2,
|
|
4714
4714
|
JsPackageManagerFactory as JsPackageManagerFactory3,
|
|
4715
|
+
PackageManagerName as PackageManagerName2,
|
|
4715
4716
|
isCI as isCI2,
|
|
4716
4717
|
optionalEnvToBoolean as optionalEnvToBoolean3,
|
|
4717
4718
|
removeAddon as remove,
|
|
@@ -4720,7 +4721,7 @@ import {
|
|
|
4720
4721
|
import { withTelemetry } from "storybook/internal/core-server";
|
|
4721
4722
|
import { CLI_COLORS as CLI_COLORS5, logTracker as logTracker4, logger as logger22 } from "storybook/internal/node-logger";
|
|
4722
4723
|
import { addToGlobalContext, telemetry as telemetry2 } from "storybook/internal/telemetry";
|
|
4723
|
-
import { program } from "commander";
|
|
4724
|
+
import { Option, program } from "commander";
|
|
4724
4725
|
|
|
4725
4726
|
// ../../node_modules/leven/index.js
|
|
4726
4727
|
var array = [], characterCodeCache = [];
|
|
@@ -4760,7 +4761,7 @@ function leven(first, second, options) {
|
|
|
4760
4761
|
var import_picocolors16 = __toESM(require_picocolors(), 1);
|
|
4761
4762
|
|
|
4762
4763
|
// package.json
|
|
4763
|
-
var version = "10.1.0-alpha.
|
|
4764
|
+
var version = "10.1.0-alpha.14";
|
|
4764
4765
|
|
|
4765
4766
|
// src/add.ts
|
|
4766
4767
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -5623,7 +5624,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
5623
5624
|
import { promises as fs } from "fs";
|
|
5624
5625
|
var maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
|
|
5625
5626
|
async function runCodemod(globPattern = "**/*.stories.*", transform, { dryRun = !1, skipFormatting = !1 } = {}) {
|
|
5626
|
-
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-
|
|
5627
|
+
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-WYMRW2VB.js"), files = await globby(slash(globPattern), {
|
|
5627
5628
|
followSymbolicLinks: !0,
|
|
5628
5629
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
5629
5630
|
});
|
|
@@ -5634,7 +5635,7 @@ Please try a different pattern.
|
|
|
5634
5635
|
`
|
|
5635
5636
|
), new Error("No files matched");
|
|
5636
5637
|
try {
|
|
5637
|
-
let pLimit = (await import("./p-limit-
|
|
5638
|
+
let pLimit = (await import("./p-limit-LSWSIOQ6.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5638
5639
|
await Promise.all(
|
|
5639
5640
|
files.map(
|
|
5640
5641
|
(file) => limit(async () => {
|
|
@@ -6394,7 +6395,7 @@ var addonA11yParameters = {
|
|
|
6394
6395
|
errors.push({ file: previewFileToUpdate, error });
|
|
6395
6396
|
}
|
|
6396
6397
|
}
|
|
6397
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6398
|
+
let { default: pLimit } = await import("./p-limit-LSWSIOQ6.js"), limit = pLimit(10);
|
|
6398
6399
|
if (await Promise.all(
|
|
6399
6400
|
storyFilesToUpdate.map(
|
|
6400
6401
|
(file) => limit(async () => {
|
|
@@ -6548,7 +6549,7 @@ var addonGlobalsApi = {
|
|
|
6548
6549
|
}
|
|
6549
6550
|
};
|
|
6550
6551
|
async function transformStoryFiles(files, options, dryRun) {
|
|
6551
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6552
|
+
let errors = [], { default: pLimit } = await import("./p-limit-LSWSIOQ6.js"), limit = pLimit(10);
|
|
6552
6553
|
return await Promise.all(
|
|
6553
6554
|
files.map(
|
|
6554
6555
|
(file) => limit(async () => {
|
|
@@ -6740,7 +6741,7 @@ function transformPackageJson(content) {
|
|
|
6740
6741
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
6741
6742
|
}
|
|
6742
6743
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
6743
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6744
|
+
let errors = [], { default: pLimit } = await import("./p-limit-LSWSIOQ6.js"), limit = pLimit(10);
|
|
6744
6745
|
return await Promise.all(
|
|
6745
6746
|
files.map(
|
|
6746
6747
|
(file) => limit(async () => {
|
|
@@ -6779,7 +6780,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
6779
6780
|
dryRun
|
|
6780
6781
|
);
|
|
6781
6782
|
errors.push(...packageJsonErrors);
|
|
6782
|
-
let { globby } = await import("./globby-
|
|
6783
|
+
let { globby } = await import("./globby-WYMRW2VB.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles(
|
|
6783
6784
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
6784
6785
|
{
|
|
6785
6786
|
...consolidatedPackages,
|
|
@@ -7123,7 +7124,7 @@ var transformMainConfig = async (mainConfigPath, dryRun) => {
|
|
|
7123
7124
|
logger11.step("Migrating from @storybook/nextjs to @storybook/nextjs-vite..."), dryRun ? logger11.debug("Dry run: Skipping package.json updates.") : (logger11.debug("Updating package.json files..."), await packageManager.removeDependencies(["@storybook/nextjs"]), await packageManager.addDependencies({ type: "devDependencies", skipInstall: !0 }, [
|
|
7124
7125
|
`@storybook/nextjs-vite@${storybookVersion}`
|
|
7125
7126
|
])), mainConfigPath && (logger11.debug("Updating main config file..."), await transformMainConfig(mainConfigPath, dryRun)), logger11.debug("Scanning and updating import statements...");
|
|
7126
|
-
let { globby } = await import("./globby-
|
|
7127
|
+
let { globby } = await import("./globby-WYMRW2VB.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles2(
|
|
7127
7128
|
allFiles,
|
|
7128
7129
|
{
|
|
7129
7130
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7339,7 +7340,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7339
7340
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
7340
7341
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
7341
7342
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
7342
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7343
|
+
let errors = [], { default: pLimit } = await import("./p-limit-LSWSIOQ6.js"), limit = pLimit(10);
|
|
7343
7344
|
return await Promise.all(
|
|
7344
7345
|
files.map(
|
|
7345
7346
|
(file) => limit(async () => {
|
|
@@ -7406,7 +7407,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7406
7407
|
continue;
|
|
7407
7408
|
logger13.debug(`
|
|
7408
7409
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
7409
|
-
let { globby } = await import("./globby-
|
|
7410
|
+
let { globby } = await import("./globby-WYMRW2VB.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
7410
7411
|
await transformSourceFiles(
|
|
7411
7412
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7412
7413
|
rendererPackage,
|
|
@@ -7436,7 +7437,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
7436
7437
|
}
|
|
7437
7438
|
var getDotStorybookReferences = async (searchDir) => {
|
|
7438
7439
|
try {
|
|
7439
|
-
let { globby } = await import("./globby-
|
|
7440
|
+
let { globby } = await import("./globby-WYMRW2VB.js"), { readFile: readFile10 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
7440
7441
|
onlyFiles: !0,
|
|
7441
7442
|
gitignore: !0
|
|
7442
7443
|
}), referencedFiles = [];
|
|
@@ -7457,7 +7458,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7457
7458
|
async check({ packageManager, mainConfigPath }) {
|
|
7458
7459
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
7459
7460
|
return null;
|
|
7460
|
-
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-
|
|
7461
|
+
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-WYMRW2VB.js"), requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
7461
7462
|
return existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
7462
7463
|
},
|
|
7463
7464
|
prompt() {
|
|
@@ -8316,6 +8317,26 @@ var baseTemplates = {
|
|
|
8316
8317
|
},
|
|
8317
8318
|
skipTasks: ["e2e-tests", "bench", "vitest-integration"]
|
|
8318
8319
|
},
|
|
8320
|
+
"react-rsbuild/default-ts": {
|
|
8321
|
+
name: "React Latest (RsBuild | TypeScript)",
|
|
8322
|
+
script: "yarn create rsbuild -d {{beforeDir}} -t react-ts --tools eslint",
|
|
8323
|
+
expected: {
|
|
8324
|
+
framework: "storybook-react-rsbuild",
|
|
8325
|
+
renderer: "@storybook/react",
|
|
8326
|
+
builder: "storybook-builder-rsbuild"
|
|
8327
|
+
},
|
|
8328
|
+
modifications: {
|
|
8329
|
+
extraDependencies: ["prop-types", "storybook-react-rsbuild@^3.0.0-beta.1"],
|
|
8330
|
+
useCsfFactory: !0,
|
|
8331
|
+
mainConfig: {
|
|
8332
|
+
features: {
|
|
8333
|
+
experimentalTestSyntax: !0
|
|
8334
|
+
}
|
|
8335
|
+
},
|
|
8336
|
+
skipMocking: !0
|
|
8337
|
+
},
|
|
8338
|
+
skipTasks: ["e2e-tests", "e2e-tests-dev", "bench", "vitest-integration"]
|
|
8339
|
+
},
|
|
8319
8340
|
"solid-vite/default-js": {
|
|
8320
8341
|
name: "SolidJS Latest (Vite | JavaScript)",
|
|
8321
8342
|
script: "npx degit solidjs/templates/js {{beforeDir}}",
|
|
@@ -8356,6 +8377,25 @@ var baseTemplates = {
|
|
|
8356
8377
|
},
|
|
8357
8378
|
skipTasks: ["bench"]
|
|
8358
8379
|
},
|
|
8380
|
+
"vue3-rsbuild/default-ts": {
|
|
8381
|
+
name: "Vue Latest (RsBuild | TypeScript)",
|
|
8382
|
+
script: "yarn create rsbuild -d {{beforeDir}} -t vue-ts --tools eslint",
|
|
8383
|
+
expected: {
|
|
8384
|
+
framework: "storybook-vue3-rsbuild",
|
|
8385
|
+
renderer: "@storybook/vue3",
|
|
8386
|
+
builder: "storybook-builder-rsbuild"
|
|
8387
|
+
},
|
|
8388
|
+
modifications: {
|
|
8389
|
+
extraDependencies: ["storybook-vue3-rsbuild@^3.0.0-beta.1"],
|
|
8390
|
+
mainConfig: {
|
|
8391
|
+
features: {
|
|
8392
|
+
experimentalTestSyntax: !0
|
|
8393
|
+
}
|
|
8394
|
+
},
|
|
8395
|
+
skipMocking: !0
|
|
8396
|
+
},
|
|
8397
|
+
skipTasks: ["e2e-tests", "e2e-tests-dev", "bench", "vitest-integration"]
|
|
8398
|
+
},
|
|
8359
8399
|
// 'nuxt-vite/default-ts': {
|
|
8360
8400
|
// name: 'Nuxt v3 (Vite | TypeScript)',
|
|
8361
8401
|
// script: 'npx nuxi init --packageManager yarn --gitInit false -M @nuxt/ui {{beforeDir}}',
|
|
@@ -8392,6 +8432,20 @@ var baseTemplates = {
|
|
|
8392
8432
|
type: "html" /* HTML */
|
|
8393
8433
|
}
|
|
8394
8434
|
},
|
|
8435
|
+
"html-rsbuild/default-ts": {
|
|
8436
|
+
name: "HTML Latest (RsBuild | TypeScript)",
|
|
8437
|
+
script: "yarn create rsbuild -d {{beforeDir}} -t vanilla-ts --tools eslint",
|
|
8438
|
+
expected: {
|
|
8439
|
+
framework: "storybook-html-rsbuild",
|
|
8440
|
+
renderer: "@storybook/html",
|
|
8441
|
+
builder: "storybook-builder-rsbuild"
|
|
8442
|
+
},
|
|
8443
|
+
modifications: {
|
|
8444
|
+
extraDependencies: ["storybook-html-rsbuild@^3.0.0-beta.1"],
|
|
8445
|
+
skipMocking: !0
|
|
8446
|
+
},
|
|
8447
|
+
skipTasks: ["e2e-tests", "e2e-tests-dev", "bench", "vitest-integration"]
|
|
8448
|
+
},
|
|
8395
8449
|
"svelte-vite/default-js": {
|
|
8396
8450
|
name: "Svelte Latest (Vite | JavaScript)",
|
|
8397
8451
|
script: "npm create vite --yes {{beforeDir}} -- --template svelte",
|
|
@@ -8416,6 +8470,10 @@ var baseTemplates = {
|
|
|
8416
8470
|
"angular-cli/prerelease": {
|
|
8417
8471
|
name: "Angular CLI Prerelease (Webpack | TypeScript)",
|
|
8418
8472
|
script: "npx -p @angular/cli@next ng new angular-v16 --directory {{beforeDir}} --routing=true --minimal=true --style=scss --strict --skip-git --skip-install --package-manager=yarn --ssr",
|
|
8473
|
+
modifications: {
|
|
8474
|
+
// Angular 21 has introduced a peer dependency requirement on standard-schema via @angular/forms`
|
|
8475
|
+
extraDependencies: ["@standard-schema/spec@^1", "@angular/forms@next"]
|
|
8476
|
+
},
|
|
8419
8477
|
expected: {
|
|
8420
8478
|
framework: "@storybook/angular",
|
|
8421
8479
|
renderer: "@storybook/angular",
|
|
@@ -8426,6 +8484,9 @@ var baseTemplates = {
|
|
|
8426
8484
|
"angular-cli/default-ts": {
|
|
8427
8485
|
name: "Angular CLI Latest (Webpack | TypeScript)",
|
|
8428
8486
|
script: "npx -p @angular/cli ng new angular-latest --directory {{beforeDir}} --routing=true --minimal=true --style=scss --strict --skip-git --skip-install --package-manager=yarn --ssr",
|
|
8487
|
+
modifications: {
|
|
8488
|
+
extraDependencies: ["@angular/forms@latest"]
|
|
8489
|
+
},
|
|
8429
8490
|
expected: {
|
|
8430
8491
|
framework: "@storybook/angular",
|
|
8431
8492
|
renderer: "@storybook/angular",
|
|
@@ -8465,6 +8526,20 @@ var baseTemplates = {
|
|
|
8465
8526
|
// Remove smoke-test from the list once https://github.com/storybookjs/storybook/issues/19351 is fixed.
|
|
8466
8527
|
skipTasks: ["smoke-test", "e2e-tests", "bench", "vitest-integration"]
|
|
8467
8528
|
},
|
|
8529
|
+
"lit-rsbuild/default-ts": {
|
|
8530
|
+
name: "Web Components Latest (RsBuild | TypeScript)",
|
|
8531
|
+
script: "yarn create rsbuild -d {{beforeDir}} -t lit-ts --tools eslint",
|
|
8532
|
+
expected: {
|
|
8533
|
+
framework: "storybook-web-components-rsbuild",
|
|
8534
|
+
renderer: "@storybook/web-components",
|
|
8535
|
+
builder: "storybook-builder-rsbuild"
|
|
8536
|
+
},
|
|
8537
|
+
modifications: {
|
|
8538
|
+
extraDependencies: ["storybook-web-components-rsbuild@^3.0.0-beta.1"],
|
|
8539
|
+
skipMocking: !0
|
|
8540
|
+
},
|
|
8541
|
+
skipTasks: ["e2e-tests", "e2e-tests-dev", "bench", "vitest-integration"]
|
|
8542
|
+
},
|
|
8468
8543
|
"preact-vite/default-js": {
|
|
8469
8544
|
name: "Preact Latest (Vite | JavaScript)",
|
|
8470
8545
|
script: "npm create vite --yes {{beforeDir}} -- --template preact",
|
|
@@ -8638,7 +8713,8 @@ var baseTemplates = {
|
|
|
8638
8713
|
name: "Bench (react-vite/default-ts)",
|
|
8639
8714
|
isInternal: !0,
|
|
8640
8715
|
modifications: {
|
|
8641
|
-
skipTemplateStories: !0
|
|
8716
|
+
skipTemplateStories: !0,
|
|
8717
|
+
skipMocking: !0
|
|
8642
8718
|
},
|
|
8643
8719
|
skipTasks: [
|
|
8644
8720
|
"e2e-tests",
|
|
@@ -8655,7 +8731,8 @@ var baseTemplates = {
|
|
|
8655
8731
|
name: "Bench (react-webpack/18-ts)",
|
|
8656
8732
|
isInternal: !0,
|
|
8657
8733
|
modifications: {
|
|
8658
|
-
skipTemplateStories: !0
|
|
8734
|
+
skipTemplateStories: !0,
|
|
8735
|
+
skipMocking: !0
|
|
8659
8736
|
},
|
|
8660
8737
|
skipTasks: [
|
|
8661
8738
|
"e2e-tests",
|
|
@@ -8672,7 +8749,8 @@ var baseTemplates = {
|
|
|
8672
8749
|
isInternal: !0,
|
|
8673
8750
|
modifications: {
|
|
8674
8751
|
skipTemplateStories: !0,
|
|
8675
|
-
disableDocs: !0
|
|
8752
|
+
disableDocs: !0,
|
|
8753
|
+
skipMocking: !0
|
|
8676
8754
|
},
|
|
8677
8755
|
skipTasks: [
|
|
8678
8756
|
"e2e-tests",
|
|
@@ -8690,7 +8768,8 @@ var baseTemplates = {
|
|
|
8690
8768
|
isInternal: !0,
|
|
8691
8769
|
modifications: {
|
|
8692
8770
|
skipTemplateStories: !0,
|
|
8693
|
-
testBuild: !0
|
|
8771
|
+
testBuild: !0,
|
|
8772
|
+
skipMocking: !0
|
|
8694
8773
|
},
|
|
8695
8774
|
skipTasks: [
|
|
8696
8775
|
"e2e-tests",
|
|
@@ -8707,7 +8786,8 @@ var baseTemplates = {
|
|
|
8707
8786
|
isInternal: !0,
|
|
8708
8787
|
modifications: {
|
|
8709
8788
|
skipTemplateStories: !0,
|
|
8710
|
-
testBuild: !0
|
|
8789
|
+
testBuild: !0,
|
|
8790
|
+
skipMocking: !0
|
|
8711
8791
|
},
|
|
8712
8792
|
skipTasks: [
|
|
8713
8793
|
"e2e-tests",
|
|
@@ -8738,7 +8818,8 @@ var baseTemplates = {
|
|
|
8738
8818
|
"bench/react-vite-default-ts-nodocs",
|
|
8739
8819
|
"bench/react-vite-default-ts-test-build",
|
|
8740
8820
|
"bench/react-webpack-18-ts-test-build",
|
|
8741
|
-
"ember/default-js"
|
|
8821
|
+
"ember/default-js",
|
|
8822
|
+
"react-rsbuild/default-ts"
|
|
8742
8823
|
], merged = [
|
|
8743
8824
|
...normal,
|
|
8744
8825
|
"react-webpack/18-ts",
|
|
@@ -8746,7 +8827,8 @@ var baseTemplates = {
|
|
|
8746
8827
|
"nextjs/15-ts",
|
|
8747
8828
|
"nextjs-vite/15-ts",
|
|
8748
8829
|
"preact-vite/default-ts",
|
|
8749
|
-
"html-vite/default-ts"
|
|
8830
|
+
"html-vite/default-ts",
|
|
8831
|
+
"vue3-rsbuild/default-ts"
|
|
8750
8832
|
], daily = [
|
|
8751
8833
|
...merged,
|
|
8752
8834
|
"angular-cli/prerelease",
|
|
@@ -8766,7 +8848,9 @@ var baseTemplates = {
|
|
|
8766
8848
|
"html-vite/default-js",
|
|
8767
8849
|
"internal/react16-webpack",
|
|
8768
8850
|
"internal/react18-webpack-babel",
|
|
8769
|
-
"react-native-web-vite/expo-ts"
|
|
8851
|
+
"react-native-web-vite/expo-ts",
|
|
8852
|
+
"lit-rsbuild/default-ts",
|
|
8853
|
+
"html-rsbuild/default-ts"
|
|
8770
8854
|
// 'react-native-web-vite/rn-cli-ts',
|
|
8771
8855
|
];
|
|
8772
8856
|
|
|
@@ -9422,7 +9506,11 @@ var handleCommandFailure = (logFilePath) => async (error) => {
|
|
|
9422
9506
|
logger22.log(`Storybook debug logs can be found at: ${logFile}`), logger22.outro(CLI_COLORS5.success("Done!"));
|
|
9423
9507
|
}
|
|
9424
9508
|
});
|
|
9425
|
-
command("init").description("Initialize Storybook into your project").option("-f --force", "Force add Storybook").option("-s --skip-install", "Skip installing deps").
|
|
9509
|
+
command("init").description("Initialize Storybook into your project").option("-f --force", "Force add Storybook").option("-s --skip-install", "Skip installing deps").addOption(
|
|
9510
|
+
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9511
|
+
Object.values(PackageManagerName2)
|
|
9512
|
+
)
|
|
9513
|
+
).option("--use-pnp", "Enable PnP mode for Yarn 2+").option("-p --parser <babel | babylon | flow | ts | tsx>", "jscodeshift parser").option("-t --type <type>", "Add Storybook for a specific project type").option("-y --yes", "Answer yes to all prompts").option("-b --builder <webpack5 | vite>", "Builder library").option("-l --linkable", "Prepare installation for link (contributor helper)").option(
|
|
9426
9514
|
"--dev",
|
|
9427
9515
|
"Launch the development server after completing initialization. Enabled by default (default: true)",
|
|
9428
9516
|
!isCI2() && !optionalEnvToBoolean3(process.env.IN_STORYBOOK_SANDBOX)
|
|
@@ -9430,17 +9518,19 @@ command("init").description("Initialize Storybook into your project").option("-f
|
|
|
9430
9518
|
"--no-dev",
|
|
9431
9519
|
"Complete the initialization of Storybook without launching the Storybook development server"
|
|
9432
9520
|
);
|
|
9433
|
-
command("add <addon>").description("Add an addon to your Storybook").
|
|
9434
|
-
"--package-manager <
|
|
9435
|
-
|
|
9521
|
+
command("add <addon>").description("Add an addon to your Storybook").addOption(
|
|
9522
|
+
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9523
|
+
Object.values(PackageManagerName2)
|
|
9524
|
+
)
|
|
9436
9525
|
).option("-c, --config-dir <dir-name>", "Directory where to load Storybook configurations from").option("--skip-install", "Skip installing deps").option("-s --skip-postinstall", "Skip package specific postinstall config modifications").option("-y --yes", "Skip prompting the user").option("--skip-doctor", "Skip doctor check").action((addonName, options) => {
|
|
9437
9526
|
withTelemetry("add", { cliOptions: options }, async () => {
|
|
9438
9527
|
logger22.intro(`Setting up your project for ${addonName}`), await add(addonName, options), options.disableTelemetry || await telemetry2("add", { addon: addonName, source: "cli" }), logger22.outro("Done!");
|
|
9439
9528
|
}).catch(handleCommandFailure);
|
|
9440
9529
|
});
|
|
9441
|
-
command("remove <addon>").description("Remove an addon from your Storybook").
|
|
9442
|
-
"--package-manager <
|
|
9443
|
-
|
|
9530
|
+
command("remove <addon>").description("Remove an addon from your Storybook").addOption(
|
|
9531
|
+
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9532
|
+
Object.values(PackageManagerName2)
|
|
9533
|
+
)
|
|
9444
9534
|
).option("-c, --config-dir <dir-name>", "Directory where to load Storybook configurations from").option("-s --skip-install", "Skip installing deps").action(
|
|
9445
9535
|
(addonName, options) => withTelemetry("remove", { cliOptions: options }, async () => {
|
|
9446
9536
|
logger22.intro(`Removing ${addonName} from your Storybook`);
|
|
@@ -9455,9 +9545,10 @@ command("remove <addon>").description("Remove an addon from your Storybook").opt
|
|
|
9455
9545
|
}), options.disableTelemetry || await telemetry2("remove", { addon: addonName, source: "cli" }), logger22.outro("Done!");
|
|
9456
9546
|
}).catch(handleCommandFailure(options.logfile))
|
|
9457
9547
|
);
|
|
9458
|
-
command("upgrade").description(`Upgrade your Storybook packages to v${versions4.storybook}`).
|
|
9459
|
-
"--package-manager <
|
|
9460
|
-
|
|
9548
|
+
command("upgrade").description(`Upgrade your Storybook packages to v${versions4.storybook}`).addOption(
|
|
9549
|
+
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9550
|
+
Object.values(PackageManagerName2)
|
|
9551
|
+
)
|
|
9461
9552
|
).option("-y --yes", "Skip prompting the user").option("-f --force", "force the upgrade, skipping autoblockers").option("-n --dry-run", "Only check for upgrades, do not install").option("-s --skip-check", "Skip postinstall version and automigration checks").option(
|
|
9462
9553
|
"-c, --config-dir <dir-name...>",
|
|
9463
9554
|
"Directory(ies) where to load Storybook configurations from"
|
|
@@ -9506,7 +9597,11 @@ command("sandbox [filterValue]").alias("repro").description("Create a sandbox fr
|
|
|
9506
9597
|
command("link <repo-url-or-directory>").description("Pull down a repro from a URL (or a local directory), link it, and run storybook").option("--local", "Link a local directory already in your file system").option("--no-start", "Start the storybook", !0).action(
|
|
9507
9598
|
(target, { local, start, logfile }) => link({ target, local, start }).catch(handleCommandFailure(logfile))
|
|
9508
9599
|
);
|
|
9509
|
-
command("automigrate [fixId]").description("Check storybook for incompatibilities or migrations and apply fixes").option("-y --yes", "Skip prompting the user").option("-n --dry-run", "Only check for fixes, do not actually run them").
|
|
9600
|
+
command("automigrate [fixId]").description("Check storybook for incompatibilities or migrations and apply fixes").option("-y --yes", "Skip prompting the user").option("-n --dry-run", "Only check for fixes, do not actually run them").addOption(
|
|
9601
|
+
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9602
|
+
Object.values(PackageManagerName2)
|
|
9603
|
+
)
|
|
9604
|
+
).option("-l --list", "List available migrations").option("-c, --config-dir <dir-name>", "Directory of Storybook configurations to migrate").option("-s --skip-install", "Skip installing deps").option(
|
|
9510
9605
|
"--renderer <renderer-pkg-name>",
|
|
9511
9606
|
"The renderer package for the framework Storybook is using."
|
|
9512
9607
|
).option("--skip-doctor", "Skip doctor check").action(async (fixId, options) => {
|
|
@@ -9514,7 +9609,11 @@ command("automigrate [fixId]").description("Check storybook for incompatibilitie
|
|
|
9514
9609
|
logger22.intro(fixId ? `Running ${fixId} automigration` : "Running automigrations"), await doAutomigrate({ fixId, ...options }), logger22.outro("Done");
|
|
9515
9610
|
}).catch(handleCommandFailure(options.logfile));
|
|
9516
9611
|
});
|
|
9517
|
-
command("doctor").description("Check Storybook for known problems and provide suggestions or fixes").
|
|
9612
|
+
command("doctor").description("Check Storybook for known problems and provide suggestions or fixes").addOption(
|
|
9613
|
+
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9614
|
+
Object.values(PackageManagerName2)
|
|
9615
|
+
)
|
|
9616
|
+
).option("-c, --config-dir <dir-name>", "Directory of Storybook configuration").action(async (options) => {
|
|
9518
9617
|
withTelemetry("doctor", { cliOptions: options }, async () => {
|
|
9519
9618
|
logger22.intro("Doctoring Storybook"), await doctor(options), logger22.outro("Done");
|
|
9520
9619
|
}).catch(handleCommandFailure(options.logfile));
|
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_vdk4xgel7ce from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_vdk4xgel7ce from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_vdk4xgel7ce from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_vdk4xgel7ce.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vdk4xgel7ce.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_vdk4xgel7ce.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-BRPD533S.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.1.0-alpha.
|
|
3
|
+
"version": "10.1.0-alpha.14",
|
|
4
4
|
"description": "Storybook CLI: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@storybook/codemod": "10.1.0-alpha.
|
|
44
|
+
"@storybook/codemod": "10.1.0-alpha.14",
|
|
45
45
|
"@types/semver": "^7.3.4",
|
|
46
46
|
"commander": "^14.0.1",
|
|
47
|
-
"create-storybook": "10.1.0-alpha.
|
|
47
|
+
"create-storybook": "10.1.0-alpha.14",
|
|
48
48
|
"jscodeshift": "^0.15.1",
|
|
49
|
-
"storybook": "10.1.0-alpha.
|
|
49
|
+
"storybook": "10.1.0-alpha.14",
|
|
50
50
|
"ts-dedent": "^2.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_87zcmh4d65e from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_87zcmh4d65e from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_87zcmh4d65e from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_87zcmh4d65e.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_87zcmh4d65e.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_87zcmh4d65e.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|