@storybook/cli 10.5.6 → 10.5.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-A2XOM4ZU.js → block-dependencies-versions-FWI5L5VK.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-UW4QAU5B.js → block-experimental-addon-test-ZTMWXMRA.js} +9 -9
- package/dist/_node-chunks/{block-major-version-YXPRR64U.js → block-major-version-CUN6K3NI.js} +9 -9
- package/dist/_node-chunks/{block-node-version-YSE3MLRB.js → block-node-version-FAHJGA7Z.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-HTOEHYB2.js → block-webpack5-frameworks-LHR6TNTF.js} +11 -11
- package/dist/_node-chunks/{chunk-Z7E6FB5O.js → chunk-5I4XZYN3.js} +7 -7
- package/dist/_node-chunks/chunk-GYJJUZ2V.js +11 -0
- package/dist/_node-chunks/{chunk-YMKLMMJH.js → chunk-MDLXP5XV.js} +15 -15
- package/dist/_node-chunks/{chunk-34PELETU.js → chunk-VRN5C3C2.js} +7 -7
- package/dist/_node-chunks/{chunk-V5XUPRA3.js → chunk-XHIR6NVK.js} +6 -6
- package/dist/_node-chunks/{globby-IKCZXBWP.js → globby-VPOWNNR4.js} +8 -8
- package/dist/_node-chunks/{p-limit-SUKQDPBT.js → p-limit-WILGB3OX.js} +7 -7
- package/dist/_node-chunks/{run-575K4KDT.js → run-6WMVIZZ6.js} +79 -47
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-6UOIHULI.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.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-MDLXP5XV.js";
|
|
15
|
+
import "./chunk-VRN5C3C2.js";
|
|
16
|
+
import "./chunk-GYJJUZ2V.js";
|
|
17
|
+
import "./chunk-5I4XZYN3.js";
|
|
18
|
+
import "./chunk-XHIR6NVK.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_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.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-GYJJUZ2V.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5I4XZYN3.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XHIR6NVK.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-YXPRR64U.js → block-major-version-CUN6K3NI.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.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-GYJJUZ2V.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5I4XZYN3.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XHIR6NVK.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_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.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-GYJJUZ2V.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5I4XZYN3.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XHIR6NVK.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_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.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-MDLXP5XV.js";
|
|
15
|
+
import "./chunk-VRN5C3C2.js";
|
|
16
|
+
import "./chunk-GYJJUZ2V.js";
|
|
17
|
+
import "./chunk-5I4XZYN3.js";
|
|
18
|
+
import "./chunk-XHIR6NVK.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_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.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-XHIR6NVK.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.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_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.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_buh4z2thdhl.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VRN5C3C2.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5I4XZYN3.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XHIR6NVK.js";
|
|
23
23
|
|
|
24
24
|
// ../../../node_modules/picocolors/picocolors.js
|
|
25
25
|
var require_picocolors = __commonJS({
|
|
@@ -126,11 +126,11 @@ var import_picocolors2 = __toESM(require_picocolors(), 1), import_semver = __toE
|
|
|
126
126
|
// src/autoblock/index.ts
|
|
127
127
|
var blockers = () => [
|
|
128
128
|
// add/remove blockers here
|
|
129
|
-
import("./block-dependencies-versions-
|
|
130
|
-
import("./block-node-version-
|
|
131
|
-
import("./block-webpack5-frameworks-
|
|
132
|
-
import("./block-major-version-
|
|
133
|
-
import("./block-experimental-addon-test-
|
|
129
|
+
import("./block-dependencies-versions-FWI5L5VK.js"),
|
|
130
|
+
import("./block-node-version-FAHJGA7Z.js"),
|
|
131
|
+
import("./block-webpack5-frameworks-LHR6TNTF.js"),
|
|
132
|
+
import("./block-major-version-CUN6K3NI.js"),
|
|
133
|
+
import("./block-experimental-addon-test-ZTMWXMRA.js")
|
|
134
134
|
], autoblock = async (options, list = blockers()) => list.length === 0 ? null : await Promise.all(
|
|
135
135
|
list.map(async (i) => {
|
|
136
136
|
let blocker = (await i).blocker;
|
|
@@ -296,7 +296,7 @@ var processProject = async ({
|
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
298
|
}, collectProjects = async (options, configDirs, onProjectScanStart) => {
|
|
299
|
-
let { default: pLimit } = await import("./p-limit-
|
|
299
|
+
let { default: pLimit } = await import("./p-limit-WILGB3OX.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
300
300
|
(configDir) => limit(
|
|
301
301
|
() => processProject({
|
|
302
302
|
configDir,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.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-XHIR6NVK.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_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.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_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.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-VRN5C3C2.js";
|
|
25
|
+
import "./chunk-XHIR6NVK.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_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.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-XHIR6NVK.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_x7pxl3jfdke from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -26,18 +26,18 @@ import {
|
|
|
26
26
|
up,
|
|
27
27
|
updateMainConfig,
|
|
28
28
|
upgradeStorybookDependencies
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MDLXP5XV.js";
|
|
30
30
|
import {
|
|
31
31
|
slash
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VRN5C3C2.js";
|
|
33
33
|
import {
|
|
34
34
|
require_semver
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5I4XZYN3.js";
|
|
36
36
|
import {
|
|
37
37
|
__commonJS,
|
|
38
38
|
__require,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-XHIR6NVK.js";
|
|
41
41
|
|
|
42
42
|
// ../../../node_modules/envinfo/dist/envinfo.js
|
|
43
43
|
var require_envinfo = __commonJS({
|
|
@@ -4761,7 +4761,7 @@ function leven(first, second, options) {
|
|
|
4761
4761
|
var import_picocolors19 = __toESM(require_picocolors(), 1);
|
|
4762
4762
|
|
|
4763
4763
|
// package.json
|
|
4764
|
-
var version = "10.5.
|
|
4764
|
+
var version = "10.5.7";
|
|
4765
4765
|
|
|
4766
4766
|
// src/add.ts
|
|
4767
4767
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -5678,7 +5678,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
5678
5678
|
import { promises as fs } from "fs";
|
|
5679
5679
|
var maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
|
|
5680
5680
|
async function runCodemod(globPattern = "**/*.{stories,story}.{js,jsx,ts,tsx,mjs,mjsx,mts,mtsx}", transform, { dryRun = !1, skipFormatting = !1 } = {}) {
|
|
5681
|
-
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-
|
|
5681
|
+
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-VPOWNNR4.js"), files = await globby(slash(globPattern), {
|
|
5682
5682
|
followSymbolicLinks: !0,
|
|
5683
5683
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
5684
5684
|
});
|
|
@@ -5689,7 +5689,7 @@ Please try a different pattern.
|
|
|
5689
5689
|
`
|
|
5690
5690
|
), new Error("No files matched");
|
|
5691
5691
|
try {
|
|
5692
|
-
let pLimit = (await import("./p-limit-
|
|
5692
|
+
let pLimit = (await import("./p-limit-WILGB3OX.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5693
5693
|
await Promise.all(
|
|
5694
5694
|
files.map(
|
|
5695
5695
|
(file) => limit(async () => {
|
|
@@ -6652,7 +6652,7 @@ export default defineConfig({
|
|
|
6652
6652
|
let angularJsonPath = `${pkgJsonPath.replace(/[/\\]package\.json$/, "")}/angular.json`, { changed, disablesCompodoc, hasStorybookTarget, allStorybookTargetsZonelessTrue } = transformAngularJson(angularJsonPath, dryRun);
|
|
6653
6653
|
disableCompodoc ||= disablesCompodoc, hasStorybookTarget && (anyStorybookTarget = !0, allZonelessTrue = allZonelessTrue && allStorybookTargetsZonelessTrue), changed && logger7.debug(`Updated Angular CLI builder references in ${angularJsonPath}`);
|
|
6654
6654
|
}
|
|
6655
|
-
let { globby } = await import("./globby-
|
|
6655
|
+
let { globby } = await import("./globby-VPOWNNR4.js"), projectJsonFiles = await globby(["**/project.json"], {
|
|
6656
6656
|
ignore: ["**/node_modules/**", "**/dist/**"],
|
|
6657
6657
|
absolute: !0
|
|
6658
6658
|
});
|
|
@@ -6893,7 +6893,7 @@ var addonA11yParameters = {
|
|
|
6893
6893
|
errors.push({ file: previewFileToUpdate, error });
|
|
6894
6894
|
}
|
|
6895
6895
|
}
|
|
6896
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6896
|
+
let { default: pLimit } = await import("./p-limit-WILGB3OX.js"), limit = pLimit(10);
|
|
6897
6897
|
if (await Promise.all(
|
|
6898
6898
|
storyFilesToUpdate.map(
|
|
6899
6899
|
(file) => limit(async () => {
|
|
@@ -7047,7 +7047,7 @@ var addonGlobalsApi = {
|
|
|
7047
7047
|
}
|
|
7048
7048
|
};
|
|
7049
7049
|
async function transformStoryFiles(files, options, dryRun) {
|
|
7050
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7050
|
+
let errors = [], { default: pLimit } = await import("./p-limit-WILGB3OX.js"), limit = pLimit(10);
|
|
7051
7051
|
return await Promise.all(
|
|
7052
7052
|
files.map(
|
|
7053
7053
|
(file) => limit(async () => {
|
|
@@ -7274,7 +7274,7 @@ function transformPackageJson(content) {
|
|
|
7274
7274
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
7275
7275
|
}
|
|
7276
7276
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
7277
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7277
|
+
let errors = [], { default: pLimit } = await import("./p-limit-WILGB3OX.js"), limit = pLimit(10);
|
|
7278
7278
|
return await Promise.all(
|
|
7279
7279
|
files.map(
|
|
7280
7280
|
(file) => limit(async () => {
|
|
@@ -7313,7 +7313,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
7313
7313
|
dryRun
|
|
7314
7314
|
);
|
|
7315
7315
|
errors.push(...packageJsonErrors);
|
|
7316
|
-
let { globby } = await import("./globby-
|
|
7316
|
+
let { globby } = await import("./globby-VPOWNNR4.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles2(
|
|
7317
7317
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7318
7318
|
{
|
|
7319
7319
|
...consolidatedPackages,
|
|
@@ -7669,7 +7669,7 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig2 = async (mainConfigPat
|
|
|
7669
7669
|
]);
|
|
7670
7670
|
}
|
|
7671
7671
|
mainConfigPath && (logger13.debug("Updating main config file..."), await transformMainConfig2(mainConfigPath, dryRun)), logger13.debug("Scanning and updating import statements...");
|
|
7672
|
-
let { globby } = await import("./globby-
|
|
7672
|
+
let { globby } = await import("./globby-VPOWNNR4.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles3(
|
|
7673
7673
|
allFiles,
|
|
7674
7674
|
{
|
|
7675
7675
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7747,7 +7747,7 @@ var REACT_VITE_PACKAGE = "@storybook/react-vite", TANSTACK_REACT_PACKAGE = "@sto
|
|
|
7747
7747
|
configDir,
|
|
7748
7748
|
storiesPaths
|
|
7749
7749
|
}) => {
|
|
7750
|
-
let { globby } = await import("./globby-
|
|
7750
|
+
let { globby } = await import("./globby-VPOWNNR4.js"), configFiles = configDir ? await globby([`${configDir}/**/*.{ts,tsx,js,jsx,mjs,cjs}`], {
|
|
7751
7751
|
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
7752
7752
|
}) : [], candidateFiles = Array.from(
|
|
7753
7753
|
/* @__PURE__ */ new Set([...previewConfigPath ? [previewConfigPath] : [], ...configFiles, ...storiesPaths])
|
|
@@ -7966,7 +7966,7 @@ var REACT_VITE_PACKAGE = "@storybook/react-vite", TANSTACK_REACT_PACKAGE = "@sto
|
|
|
7966
7966
|
logger14.step(`Migrating from ${REACT_VITE_PACKAGE} to ${TANSTACK_REACT_PACKAGE}...`), dryRun ? logger14.debug("Dry run: Skipping package.json updates.") : (logger14.debug("Updating package.json files..."), await packageManager.removeDependencies([REACT_VITE_PACKAGE]), await packageManager.addDependencies({ type: "devDependencies", skipInstall: !0 }, [
|
|
7967
7967
|
`${TANSTACK_REACT_PACKAGE}@${storybookVersion}`
|
|
7968
7968
|
])), mainConfigPath && (logger14.debug("Updating main config file..."), await transformMainConfig3(mainConfigPath, dryRun)), logger14.debug("Scanning and updating import statements...");
|
|
7969
|
-
let { globby } = await import("./globby-
|
|
7969
|
+
let { globby } = await import("./globby-VPOWNNR4.js"), configFiles = configDir ? await globby([`${configDir}/**/*.{ts,tsx,js,jsx,mjs,cjs}`], {
|
|
7970
7970
|
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
7971
7971
|
}) : [], allFiles = [...storiesPaths, ...configFiles, previewConfigPath].filter(
|
|
7972
7972
|
Boolean
|
|
@@ -8207,7 +8207,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
8207
8207
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
8208
8208
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
8209
8209
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
8210
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
8210
|
+
let errors = [], { default: pLimit } = await import("./p-limit-WILGB3OX.js"), limit = pLimit(10);
|
|
8211
8211
|
return await Promise.all(
|
|
8212
8212
|
files.map(
|
|
8213
8213
|
(file) => limit(async () => {
|
|
@@ -8274,7 +8274,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
8274
8274
|
continue;
|
|
8275
8275
|
logger16.debug(`
|
|
8276
8276
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
8277
|
-
let { globby } = await import("./globby-
|
|
8277
|
+
let { globby } = await import("./globby-VPOWNNR4.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
8278
8278
|
await transformSourceFiles(
|
|
8279
8279
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
8280
8280
|
rendererPackage,
|
|
@@ -8380,7 +8380,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
8380
8380
|
}
|
|
8381
8381
|
var getDotStorybookReferences = async (searchDir) => {
|
|
8382
8382
|
try {
|
|
8383
|
-
let { globby } = await import("./globby-
|
|
8383
|
+
let { globby } = await import("./globby-VPOWNNR4.js"), { readFile: readFile12 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
8384
8384
|
onlyFiles: !0,
|
|
8385
8385
|
gitignore: !0
|
|
8386
8386
|
}), referencedFiles = [];
|
|
@@ -8401,7 +8401,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
8401
8401
|
async check({ packageManager, mainConfigPath }) {
|
|
8402
8402
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
8403
8403
|
return null;
|
|
8404
|
-
let projectDir = mainConfigPath ? join5(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join5(projectDir, ".storybook"), rnStorybookDir = join5(projectDir, RN_STORYBOOK_DIR), { globby } = await import("./globby-
|
|
8404
|
+
let projectDir = mainConfigPath ? join5(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join5(projectDir, ".storybook"), rnStorybookDir = join5(projectDir, RN_STORYBOOK_DIR), { globby } = await import("./globby-VPOWNNR4.js"), requiresFiles = await globby(join5(storybookDir, "storybook.requires.*"));
|
|
8405
8405
|
return existsSync4(storybookDir) && requiresFiles.length > 0 && !existsSync4(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
8406
8406
|
},
|
|
8407
8407
|
prompt() {
|
|
@@ -9008,7 +9008,7 @@ var baseTemplates = {
|
|
|
9008
9008
|
},
|
|
9009
9009
|
"nextjs/14-ts": {
|
|
9010
9010
|
name: "Next.js v14.2 (Webpack | TypeScript)",
|
|
9011
|
-
script: '
|
|
9011
|
+
script: 'npx create-next-app {{beforeDir}} --skip-install -e https://github.com/vercel/next.js/tree/v14.2.17/examples/hello-world && cd {{beforeDir}} && npm pkg set "dependencies.next"="^14.2.17" && yarn && git add . && git commit --amend --no-edit && cd ..',
|
|
9012
9012
|
expected: {
|
|
9013
9013
|
framework: "@storybook/nextjs",
|
|
9014
9014
|
renderer: "@storybook/react",
|
|
@@ -9032,7 +9032,7 @@ var baseTemplates = {
|
|
|
9032
9032
|
},
|
|
9033
9033
|
"nextjs/15-ts": {
|
|
9034
9034
|
name: "Next.js v15 (Webpack | TypeScript)",
|
|
9035
|
-
script: 'npx create-next-app@^15.5 {{beforeDir}} --eslint --tailwind --app --import-alias="@/*" --src-dir',
|
|
9035
|
+
script: 'npx create-next-app@^15.5 {{beforeDir}} --skip-install --eslint --tailwind --app --import-alias="@/*" --src-dir',
|
|
9036
9036
|
expected: {
|
|
9037
9037
|
framework: "@storybook/nextjs",
|
|
9038
9038
|
renderer: "@storybook/react",
|
|
@@ -9056,7 +9056,7 @@ var baseTemplates = {
|
|
|
9056
9056
|
},
|
|
9057
9057
|
"nextjs/default-ts": {
|
|
9058
9058
|
name: "Next.js Latest (Webpack | TypeScript)",
|
|
9059
|
-
script: 'npx create-next-app {{beforeDir}} --eslint --tailwind --app --import-alias="@/*" --src-dir',
|
|
9059
|
+
script: 'npx create-next-app {{beforeDir}} --skip-install --eslint --tailwind --app --import-alias="@/*" --src-dir',
|
|
9060
9060
|
expected: {
|
|
9061
9061
|
framework: "@storybook/nextjs",
|
|
9062
9062
|
renderer: "@storybook/react",
|
|
@@ -9081,7 +9081,16 @@ var baseTemplates = {
|
|
|
9081
9081
|
},
|
|
9082
9082
|
"nextjs/prerelease": {
|
|
9083
9083
|
name: "Next.js Prerelease (Webpack | TypeScript)",
|
|
9084
|
-
script: 'npx create-next-app@canary {{beforeDir}} --eslint --tailwind --app --import-alias="@/*" --src-dir',
|
|
9084
|
+
script: 'npx create-next-app@canary {{beforeDir}} --skip-install --eslint --tailwind --app --import-alias="@/*" --src-dir',
|
|
9085
|
+
// The point of this template is the canary line, and canaries are published
|
|
9086
|
+
// daily. `@next/*` covers the platform binaries, and `eslint-config-next`
|
|
9087
|
+
// is pinned to the same canary version by create-next-app.
|
|
9088
|
+
//
|
|
9089
|
+
// `@tailwindcss/turbopack` is not part of that line — `--tailwind` pulls it in,
|
|
9090
|
+
// and it is new enough that `^4` has only ever matched one release. Until it has
|
|
9091
|
+
// a second one, every release it makes is the sole candidate and the gate blocks
|
|
9092
|
+
// the whole template. Drop this entry once 4.x has some history.
|
|
9093
|
+
minAgeGateExemptions: ["next", "@next/*", "eslint-config-next", "@tailwindcss/turbopack"],
|
|
9085
9094
|
expected: {
|
|
9086
9095
|
framework: "@storybook/nextjs",
|
|
9087
9096
|
renderer: "@storybook/react",
|
|
@@ -9105,7 +9114,7 @@ var baseTemplates = {
|
|
|
9105
9114
|
},
|
|
9106
9115
|
"nextjs-vite/14-ts": {
|
|
9107
9116
|
name: "Next.js v14 (Vite | TypeScript)",
|
|
9108
|
-
script: 'npx create-next-app@^14 {{beforeDir}} --eslint --tailwind --app --import-alias="@/*" --src-dir',
|
|
9117
|
+
script: 'npx create-next-app@^14 {{beforeDir}} --skip-install --eslint --tailwind --app --import-alias="@/*" --src-dir',
|
|
9109
9118
|
expected: {
|
|
9110
9119
|
framework: "@storybook/nextjs-vite",
|
|
9111
9120
|
renderer: "@storybook/react",
|
|
@@ -9127,7 +9136,7 @@ var baseTemplates = {
|
|
|
9127
9136
|
},
|
|
9128
9137
|
"nextjs-vite/15-ts": {
|
|
9129
9138
|
name: "Next.js v15 (Vite | TypeScript)",
|
|
9130
|
-
script: 'npx create-next-app@^15 {{beforeDir}} --eslint --tailwind --app --import-alias="@/*" --src-dir',
|
|
9139
|
+
script: 'npx create-next-app@^15 {{beforeDir}} --skip-install --eslint --tailwind --app --import-alias="@/*" --src-dir',
|
|
9131
9140
|
expected: {
|
|
9132
9141
|
framework: "@storybook/nextjs-vite",
|
|
9133
9142
|
renderer: "@storybook/react",
|
|
@@ -9149,7 +9158,7 @@ var baseTemplates = {
|
|
|
9149
9158
|
},
|
|
9150
9159
|
"nextjs-vite/default-ts": {
|
|
9151
9160
|
name: "Next.js Latest (Vite | TypeScript)",
|
|
9152
|
-
script: 'npx create-next-app {{beforeDir}} --eslint --no-tailwind --app --import-alias="@/*" --src-dir',
|
|
9161
|
+
script: 'npx create-next-app {{beforeDir}} --skip-install --eslint --no-tailwind --app --import-alias="@/*" --src-dir',
|
|
9153
9162
|
expected: {
|
|
9154
9163
|
framework: "@storybook/nextjs-vite",
|
|
9155
9164
|
renderer: "@storybook/react",
|
|
@@ -9220,6 +9229,10 @@ var baseTemplates = {
|
|
|
9220
9229
|
* see https://react.dev/blog/2024/04/25/react-19-upgrade-guide#installing
|
|
9221
9230
|
*/
|
|
9222
9231
|
script: "npm create vite --yes {{beforeDir}} -- --template react-ts",
|
|
9232
|
+
// Beta React is applied after scaffold (extraDependencies / resolutions). The allowlist
|
|
9233
|
+
// still has to live on before-storybook so later installs under the 7-day gate can
|
|
9234
|
+
// resolve those packages. `scheduler` ships in lockstep with React releases.
|
|
9235
|
+
minAgeGateExemptions: ["react", "react-dom", "types-react", "types-react-dom", "scheduler"],
|
|
9223
9236
|
expected: {
|
|
9224
9237
|
framework: "@storybook/react-vite",
|
|
9225
9238
|
renderer: "@storybook/react",
|
|
@@ -9250,7 +9263,7 @@ var baseTemplates = {
|
|
|
9250
9263
|
},
|
|
9251
9264
|
"react-webpack/18-ts": {
|
|
9252
9265
|
name: "React Latest (Webpack | TypeScript)",
|
|
9253
|
-
script: "
|
|
9266
|
+
script: "npx create-webpack5-react {{beforeDir}}",
|
|
9254
9267
|
expected: {
|
|
9255
9268
|
framework: "@storybook/react-webpack5",
|
|
9256
9269
|
renderer: "@storybook/react",
|
|
@@ -9270,7 +9283,7 @@ var baseTemplates = {
|
|
|
9270
9283
|
},
|
|
9271
9284
|
"react-webpack/17-ts": {
|
|
9272
9285
|
name: "React v17 (Webpack | TypeScript)",
|
|
9273
|
-
script: '
|
|
9286
|
+
script: 'npx create-webpack5-react {{beforeDir}} --version-react="17" --version-react-dom="17"',
|
|
9274
9287
|
expected: {
|
|
9275
9288
|
framework: "@storybook/react-webpack5",
|
|
9276
9289
|
renderer: "@storybook/react",
|
|
@@ -9294,7 +9307,12 @@ var baseTemplates = {
|
|
|
9294
9307
|
* Create a Webpack project with React beta versions.
|
|
9295
9308
|
* See https://react.dev/blog/2024/04/25/react-19-upgrade-guide#installing
|
|
9296
9309
|
*/
|
|
9297
|
-
script: '
|
|
9310
|
+
script: 'npx create-webpack5-react {{beforeDir}} --version-react="beta" --version-react-dom="beta"',
|
|
9311
|
+
// create-webpack5-react pins react@beta at scaffold time, so refresh must allow the
|
|
9312
|
+
// React beta family or the 7-day gate quarantines them. `types-react*` are the
|
|
9313
|
+
// packages behind the `@types/react@npm:types-react@beta` aliases; `scheduler`
|
|
9314
|
+
// ships in lockstep with React releases.
|
|
9315
|
+
minAgeGateExemptions: ["react", "react-dom", "types-react", "types-react-dom", "scheduler"],
|
|
9298
9316
|
expected: {
|
|
9299
9317
|
framework: "@storybook/react-webpack5",
|
|
9300
9318
|
renderer: "@storybook/react",
|
|
@@ -9322,7 +9340,7 @@ var baseTemplates = {
|
|
|
9322
9340
|
},
|
|
9323
9341
|
"react-rsbuild/default-ts": {
|
|
9324
9342
|
name: "React Latest (RsBuild | TypeScript)",
|
|
9325
|
-
script: "
|
|
9343
|
+
script: "npx create-rsbuild -d {{beforeDir}} -t react-ts --tools eslint",
|
|
9326
9344
|
expected: {
|
|
9327
9345
|
framework: "storybook-react-rsbuild",
|
|
9328
9346
|
renderer: "@storybook/react",
|
|
@@ -9342,7 +9360,7 @@ var baseTemplates = {
|
|
|
9342
9360
|
},
|
|
9343
9361
|
"solid-vite/default-ts": {
|
|
9344
9362
|
name: "SolidJS Latest (Vite | TypeScript)",
|
|
9345
|
-
script: "
|
|
9363
|
+
script: "npx create-solid {{beforeDir}} --vanilla --ts --template=with-vitest",
|
|
9346
9364
|
expected: {
|
|
9347
9365
|
framework: "storybook-solidjs-vite",
|
|
9348
9366
|
renderer: "storybook-solidjs-vite",
|
|
@@ -9352,7 +9370,7 @@ var baseTemplates = {
|
|
|
9352
9370
|
},
|
|
9353
9371
|
"tanstack-react-router/default-ts": {
|
|
9354
9372
|
name: "TanStack React Router Latest (Vite | TypeScript)",
|
|
9355
|
-
script: "npx @tanstack/cli@latest create {{beforeDir}} --tailwind --router-only",
|
|
9373
|
+
script: "npx @tanstack/cli@latest create {{beforeDir}} --no-install --tailwind --router-only",
|
|
9356
9374
|
expected: {
|
|
9357
9375
|
framework: "@storybook/tanstack-react",
|
|
9358
9376
|
renderer: "@storybook/react",
|
|
@@ -9372,7 +9390,7 @@ var baseTemplates = {
|
|
|
9372
9390
|
},
|
|
9373
9391
|
"tanstack-react-start/default-ts": {
|
|
9374
9392
|
name: "TanStack React Start Latest (Vite | TypeScript)",
|
|
9375
|
-
script: "npx @tanstack/cli@latest create {{beforeDir}} --tailwind",
|
|
9393
|
+
script: "npx @tanstack/cli@latest create {{beforeDir}} --no-install --tailwind",
|
|
9376
9394
|
expected: {
|
|
9377
9395
|
framework: "@storybook/tanstack-react",
|
|
9378
9396
|
renderer: "@storybook/react",
|
|
@@ -9393,6 +9411,8 @@ var baseTemplates = {
|
|
|
9393
9411
|
"vue3-vite/default-js": {
|
|
9394
9412
|
name: "Vue v3 (Vite | JavaScript)",
|
|
9395
9413
|
script: "npm create vite --yes {{beforeDir}} -- --template vue",
|
|
9414
|
+
// vue-component-meta@^3.3.9 pins @vue/language-core; both are inside the age gate.
|
|
9415
|
+
minAgeGateExemptions: ["vue-component-meta", "@vue/language-core"],
|
|
9396
9416
|
expected: {
|
|
9397
9417
|
framework: "@storybook/vue3-vite",
|
|
9398
9418
|
renderer: "@storybook/vue3",
|
|
@@ -9406,6 +9426,7 @@ var baseTemplates = {
|
|
|
9406
9426
|
"vue3-vite/default-ts": {
|
|
9407
9427
|
name: "Vue v3 (Vite | TypeScript)",
|
|
9408
9428
|
script: "npm create vite --yes {{beforeDir}} -- --template vue-ts",
|
|
9429
|
+
minAgeGateExemptions: ["vue-component-meta", "@vue/language-core"],
|
|
9409
9430
|
expected: {
|
|
9410
9431
|
framework: "@storybook/vue3-vite",
|
|
9411
9432
|
renderer: "@storybook/vue3",
|
|
@@ -9418,7 +9439,7 @@ var baseTemplates = {
|
|
|
9418
9439
|
},
|
|
9419
9440
|
"vue3-rsbuild/default-ts": {
|
|
9420
9441
|
name: "Vue Latest (RsBuild | TypeScript)",
|
|
9421
|
-
script: "
|
|
9442
|
+
script: "npx create-rsbuild -d {{beforeDir}} -t vue-ts --tools eslint",
|
|
9422
9443
|
expected: {
|
|
9423
9444
|
framework: "storybook-vue3-rsbuild",
|
|
9424
9445
|
renderer: "@storybook/vue3",
|
|
@@ -9473,7 +9494,7 @@ var baseTemplates = {
|
|
|
9473
9494
|
},
|
|
9474
9495
|
"html-rsbuild/default-ts": {
|
|
9475
9496
|
name: "HTML Latest (RsBuild | TypeScript)",
|
|
9476
|
-
script: "
|
|
9497
|
+
script: "npx create-rsbuild -d {{beforeDir}} -t vanilla-ts --tools eslint",
|
|
9477
9498
|
expected: {
|
|
9478
9499
|
framework: "storybook-html-rsbuild",
|
|
9479
9500
|
renderer: "@storybook/html",
|
|
@@ -9613,7 +9634,7 @@ var baseTemplates = {
|
|
|
9613
9634
|
},
|
|
9614
9635
|
"lit-rsbuild/default-ts": {
|
|
9615
9636
|
name: "Web Components Latest (RsBuild | TypeScript)",
|
|
9616
|
-
script: "
|
|
9637
|
+
script: "npx create-rsbuild -d {{beforeDir}} -t lit-ts --tools eslint",
|
|
9617
9638
|
expected: {
|
|
9618
9639
|
framework: "storybook-web-components-rsbuild",
|
|
9619
9640
|
renderer: "@storybook/web-components",
|
|
@@ -9666,7 +9687,7 @@ var baseTemplates = {
|
|
|
9666
9687
|
// },
|
|
9667
9688
|
"ember/3-js": {
|
|
9668
9689
|
name: "Ember v3 (Webpack | JavaScript)",
|
|
9669
|
-
script: "npx --package ember-cli@3.28.1 ember new {{beforeDir}}",
|
|
9690
|
+
script: "npx --package ember-cli@3.28.1 ember new {{beforeDir}} --skip-install",
|
|
9670
9691
|
inDevelopment: !0,
|
|
9671
9692
|
expected: {
|
|
9672
9693
|
framework: "@storybook/ember",
|
|
@@ -9694,7 +9715,18 @@ var baseTemplates = {
|
|
|
9694
9715
|
// Users & CI won't see this limitation because they are not using
|
|
9695
9716
|
// yarn portals.
|
|
9696
9717
|
name: "React Native Expo Latest (Vite | TypeScript)",
|
|
9697
|
-
script: "npx create-expo-app -y {{beforeDir}}",
|
|
9718
|
+
script: "npx create-expo-app -y --no-install {{beforeDir}}",
|
|
9719
|
+
// create-expo-app pins the current SDK, whose packages are released
|
|
9720
|
+
// together and are routinely younger than the gate window.
|
|
9721
|
+
// `babel-preset-expo` is part of that set despite not matching `expo-*`.
|
|
9722
|
+
minAgeGateExemptions: [
|
|
9723
|
+
"expo",
|
|
9724
|
+
"expo-*",
|
|
9725
|
+
"@expo/*",
|
|
9726
|
+
"babel-preset-expo",
|
|
9727
|
+
"react-native",
|
|
9728
|
+
"@react-native/*"
|
|
9729
|
+
],
|
|
9698
9730
|
expected: {
|
|
9699
9731
|
framework: "@storybook/react-native-web-vite",
|
|
9700
9732
|
renderer: "@storybook/react",
|
|
@@ -9727,7 +9759,7 @@ var baseTemplates = {
|
|
|
9727
9759
|
// Users & CI won't see this limitation because they are not using
|
|
9728
9760
|
// yarn portals.
|
|
9729
9761
|
name: "React Native CLI Latest (Vite | TypeScript)",
|
|
9730
|
-
script: "npx @react-native-community/cli@latest init --install-pods=false --directory={{beforeDir}} rnapp",
|
|
9762
|
+
script: "npx @react-native-community/cli@latest init --skip-install --install-pods=false --directory={{beforeDir}} rnapp",
|
|
9731
9763
|
expected: {
|
|
9732
9764
|
framework: "@storybook/react-native-web-vite",
|
|
9733
9765
|
renderer: "@storybook/react",
|
|
@@ -9747,7 +9779,7 @@ var baseTemplates = {
|
|
|
9747
9779
|
}, internalTemplates = {
|
|
9748
9780
|
"internal/react18-webpack-babel": {
|
|
9749
9781
|
name: "React with Babel Latest (Webpack | TypeScript)",
|
|
9750
|
-
script: "
|
|
9782
|
+
script: "npx create-webpack5-react {{beforeDir}}",
|
|
9751
9783
|
expected: {
|
|
9752
9784
|
framework: "@storybook/react-webpack5",
|
|
9753
9785
|
renderer: "@storybook/react",
|
|
@@ -9778,7 +9810,7 @@ var baseTemplates = {
|
|
|
9778
9810
|
},
|
|
9779
9811
|
"internal/react16-webpack": {
|
|
9780
9812
|
name: "React 16 (Webpack | TypeScript)",
|
|
9781
|
-
script: "
|
|
9813
|
+
script: "npx create-webpack5-react {{beforeDir}} --version-react=16 --version-react-dom=16 --version-@types/react=16 --version-@types/react-dom=16",
|
|
9782
9814
|
expected: {
|
|
9783
9815
|
framework: "@storybook/react-webpack5",
|
|
9784
9816
|
renderer: "@storybook/react",
|
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_x7pxl3jfdke from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_x7pxl3jfdke from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_x7pxl3jfdke from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_x7pxl3jfdke.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_x7pxl3jfdke.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_x7pxl3jfdke.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -20,4 +20,4 @@ isNodeVersionSupported(major, minor, patch) || (logger.error(
|
|
|
20
20
|
dedent`To run Storybook, you need Node.js version ${MIN_SUPPORTED_NODE_DESCRIPTION}.
|
|
21
21
|
You are currently running Node.js ${process.version}. Please upgrade your Node.js installation.`
|
|
22
22
|
), process.exit(1));
|
|
23
|
-
import("../_node-chunks/run-
|
|
23
|
+
import("../_node-chunks/run-6WMVIZZ6.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.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.5.
|
|
40
|
+
"@storybook/codemod": "10.5.7",
|
|
41
41
|
"@types/semver": "^7.7.1",
|
|
42
42
|
"commander": "^14.0.2",
|
|
43
|
-
"create-storybook": "10.5.
|
|
43
|
+
"create-storybook": "10.5.7",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.5.
|
|
45
|
+
"storybook": "10.5.7",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_buh4z2thdhl from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_buh4z2thdhl from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_buh4z2thdhl from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_buh4z2thdhl.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_buh4z2thdhl.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_buh4z2thdhl.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|