@storybook/cli 10.0.0-beta.10 → 10.0.0-beta.12
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-YJ6FXRIN.js → block-dependencies-versions-3PFABHN5.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-WSEVJKQ6.js → block-experimental-addon-test-ZHZVCR6A.js} +9 -9
- package/dist/_node-chunks/{block-major-version-2MG6WBAK.js → block-major-version-57PRYR4V.js} +9 -9
- package/dist/_node-chunks/{block-node-version-OT4M7JM6.js → block-node-version-K3BJUOGA.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-UWYMYXBB.js → block-webpack5-frameworks-OJO5LDO3.js} +11 -11
- package/dist/_node-chunks/{chunk-5VQ2QYW2.js → chunk-2UCIPRVD.js} +7 -7
- package/dist/_node-chunks/{chunk-TXN2LZW6.js → chunk-B6YQQJER.js} +15 -15
- package/dist/_node-chunks/{chunk-IKB5HGPR.js → chunk-H7P5F6IC.js} +7 -7
- package/dist/_node-chunks/chunk-KFQFIDH4.js +24 -0
- package/dist/_node-chunks/{chunk-PANN76P2.js → chunk-PBUPMGDF.js} +6 -6
- package/dist/_node-chunks/{globby-X2BYPAHX.js → globby-AKK7FFDP.js} +8 -8
- package/dist/_node-chunks/{p-limit-OW3XVIC5.js → p-limit-NXBHDQ53.js} +7 -7
- package/dist/_node-chunks/{run-ZCO4EHEU.js → run-5XLWT5UY.js} +99 -60
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-QS3A3NJ6.js +0 -24
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.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-
|
|
14
|
+
} from "./chunk-B6YQQJER.js";
|
|
15
|
+
import "./chunk-H7P5F6IC.js";
|
|
16
16
|
import {
|
|
17
17
|
createBlocker
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-KFQFIDH4.js";
|
|
19
|
+
import "./chunk-2UCIPRVD.js";
|
|
20
|
+
import "./chunk-PBUPMGDF.js";
|
|
21
21
|
|
|
22
22
|
// src/autoblock/block-dependencies-versions.ts
|
|
23
23
|
import { dedent } from "ts-dedent";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.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
|
createBlocker
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KFQFIDH4.js";
|
|
15
15
|
import {
|
|
16
16
|
require_semver
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2UCIPRVD.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PBUPMGDF.js";
|
|
21
21
|
|
|
22
22
|
// src/autoblock/block-experimental-addon-test.ts
|
|
23
23
|
var import_semver = __toESM(require_semver(), 1);
|
package/dist/_node-chunks/{block-major-version-2MG6WBAK.js → block-major-version-57PRYR4V.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.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
|
createBlocker
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KFQFIDH4.js";
|
|
15
15
|
import {
|
|
16
16
|
require_semver
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2UCIPRVD.js";
|
|
18
18
|
import {
|
|
19
19
|
__name,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PBUPMGDF.js";
|
|
22
22
|
|
|
23
23
|
// src/autoblock/block-major-version.ts
|
|
24
24
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.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
|
createBlocker
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KFQFIDH4.js";
|
|
15
15
|
import {
|
|
16
16
|
require_semver
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2UCIPRVD.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PBUPMGDF.js";
|
|
21
21
|
|
|
22
22
|
// src/autoblock/block-node-version.ts
|
|
23
23
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.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-
|
|
14
|
+
} from "./chunk-B6YQQJER.js";
|
|
15
|
+
import "./chunk-H7P5F6IC.js";
|
|
16
16
|
import {
|
|
17
17
|
createBlocker
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-KFQFIDH4.js";
|
|
19
|
+
import "./chunk-2UCIPRVD.js";
|
|
20
|
+
import "./chunk-PBUPMGDF.js";
|
|
21
21
|
|
|
22
22
|
// src/autoblock/block-webpack5-frameworks.ts
|
|
23
23
|
var minimalVersionsMap = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_ppzqbnrhdsn.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PBUPMGDF.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/semver/internal/constants.js
|
|
18
18
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,15 +12,15 @@ var require = CJS_COMPAT_NODE_MODULE_ppzqbnrhdsn.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-H7P5F6IC.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2UCIPRVD.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PBUPMGDF.js";
|
|
24
24
|
|
|
25
25
|
// ../../node_modules/picocolors/picocolors.js
|
|
26
26
|
var require_picocolors = __commonJS({
|
|
@@ -1144,11 +1144,11 @@ var import_semver = __toESM(require_semver(), 1);
|
|
|
1144
1144
|
// src/autoblock/index.ts
|
|
1145
1145
|
var blockers = /* @__PURE__ */ __name(() => [
|
|
1146
1146
|
// add/remove blockers here
|
|
1147
|
-
import("./block-dependencies-versions-
|
|
1148
|
-
import("./block-node-version-
|
|
1149
|
-
import("./block-webpack5-frameworks-
|
|
1150
|
-
import("./block-major-version-
|
|
1151
|
-
import("./block-experimental-addon-test-
|
|
1147
|
+
import("./block-dependencies-versions-3PFABHN5.js"),
|
|
1148
|
+
import("./block-node-version-K3BJUOGA.js"),
|
|
1149
|
+
import("./block-webpack5-frameworks-OJO5LDO3.js"),
|
|
1150
|
+
import("./block-major-version-57PRYR4V.js"),
|
|
1151
|
+
import("./block-experimental-addon-test-ZHZVCR6A.js")
|
|
1152
1152
|
], "blockers");
|
|
1153
1153
|
var autoblock = /* @__PURE__ */ __name(async (options, list = blockers()) => {
|
|
1154
1154
|
if (list.length === 0) {
|
|
@@ -1416,7 +1416,7 @@ var processProject = /* @__PURE__ */ __name(async ({
|
|
|
1416
1416
|
}
|
|
1417
1417
|
}, "processProject");
|
|
1418
1418
|
var collectProjects = /* @__PURE__ */ __name(async (options, configDirs, onProjectScanStart) => {
|
|
1419
|
-
const { default: pLimit } = await import("./p-limit-
|
|
1419
|
+
const { default: pLimit } = await import("./p-limit-NXBHDQ53.js");
|
|
1420
1420
|
const currentCLIVersion = versions.storybook;
|
|
1421
1421
|
const limit = pLimit(5);
|
|
1422
1422
|
const projectPromises = configDirs.map(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__name,
|
|
15
15
|
__require,
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PBUPMGDF.js";
|
|
18
18
|
|
|
19
19
|
// ../../node_modules/fast-glob/out/utils/array.js
|
|
20
20
|
var require_array = __commonJS({
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
__name
|
|
14
|
+
} from "./chunk-PBUPMGDF.js";
|
|
15
|
+
|
|
16
|
+
// src/autoblock/types.ts
|
|
17
|
+
function createBlocker(block) {
|
|
18
|
+
return block;
|
|
19
|
+
}
|
|
20
|
+
__name(createBlocker, "createBlocker");
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
createBlocker
|
|
24
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.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_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.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-H7P5F6IC.js";
|
|
25
|
+
import "./chunk-PBUPMGDF.js";
|
|
26
26
|
export {
|
|
27
27
|
convertPathToPattern,
|
|
28
28
|
generateGlobTasks,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PBUPMGDF.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/yocto-queue/index.js
|
|
17
17
|
var Node = class {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ag35izknai from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -24,19 +24,19 @@ import {
|
|
|
24
24
|
shortenPath,
|
|
25
25
|
updateMainConfig,
|
|
26
26
|
upgradeStorybookDependencies
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-B6YQQJER.js";
|
|
28
28
|
import {
|
|
29
29
|
slash
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-H7P5F6IC.js";
|
|
31
31
|
import {
|
|
32
32
|
require_semver
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-2UCIPRVD.js";
|
|
34
34
|
import {
|
|
35
35
|
__commonJS,
|
|
36
36
|
__name,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PBUPMGDF.js";
|
|
40
40
|
|
|
41
41
|
// ../../node_modules/envinfo/dist/envinfo.js
|
|
42
42
|
var require_envinfo = __commonJS({
|
|
@@ -4921,11 +4921,12 @@ __name(leven, "leven");
|
|
|
4921
4921
|
var import_picocolors17 = __toESM(require_picocolors(), 1);
|
|
4922
4922
|
|
|
4923
4923
|
// package.json
|
|
4924
|
-
var version = "10.0.0-beta.
|
|
4924
|
+
var version = "10.0.0-beta.12";
|
|
4925
4925
|
|
|
4926
4926
|
// src/add.ts
|
|
4927
4927
|
var import_semver = __toESM(require_semver(), 1);
|
|
4928
4928
|
import {
|
|
4929
|
+
loadMainConfig,
|
|
4929
4930
|
syncStorybookAddons,
|
|
4930
4931
|
versions
|
|
4931
4932
|
} from "storybook/internal/common";
|
|
@@ -5516,7 +5517,7 @@ var importMetaResolve = /* @__PURE__ */ __name((...args) => {
|
|
|
5516
5517
|
return import.meta.resolve(...args);
|
|
5517
5518
|
}, "importMetaResolve");
|
|
5518
5519
|
var isTypescriptLoaderRegistered = false;
|
|
5519
|
-
async function importModule(path4) {
|
|
5520
|
+
async function importModule(path4, { skipCache = false } = {}) {
|
|
5520
5521
|
if (!isTypescriptLoaderRegistered) {
|
|
5521
5522
|
const typescriptLoaderUrl = importMetaResolve("storybook/internal/bin/loader");
|
|
5522
5523
|
register(typescriptLoaderUrl, import.meta.url);
|
|
@@ -5525,10 +5526,14 @@ async function importModule(path4) {
|
|
|
5525
5526
|
let mod;
|
|
5526
5527
|
try {
|
|
5527
5528
|
const resolvedPath = win32.isAbsolute(path4) ? pathToFileURL(path4).href : path4;
|
|
5528
|
-
|
|
5529
|
+
const importUrl = skipCache ? `${resolvedPath}?${Date.now()}` : resolvedPath;
|
|
5530
|
+
mod = await import(importUrl);
|
|
5529
5531
|
} catch (importError) {
|
|
5530
5532
|
try {
|
|
5531
5533
|
const require3 = createRequire(import.meta.url);
|
|
5534
|
+
if (skipCache) {
|
|
5535
|
+
delete require3.cache[require3.resolve(path4)];
|
|
5536
|
+
}
|
|
5532
5537
|
mod = require3(path4);
|
|
5533
5538
|
} catch (requireError) {
|
|
5534
5539
|
throw importError;
|
|
@@ -5664,7 +5669,8 @@ async function add(addon, {
|
|
|
5664
5669
|
await writeConfig(main);
|
|
5665
5670
|
}
|
|
5666
5671
|
try {
|
|
5667
|
-
await
|
|
5672
|
+
const newMainConfig = await loadMainConfig({ configDir, skipCache: true });
|
|
5673
|
+
await syncStorybookAddons(newMainConfig, previewConfigPath, configDir);
|
|
5668
5674
|
} catch (e) {
|
|
5669
5675
|
}
|
|
5670
5676
|
if (!skipPostinstall && isCoreAddon(addonName)) {
|
|
@@ -6397,7 +6403,7 @@ async function runCodemod(globPattern = "**/*.stories.*", transform, { dryRun =
|
|
|
6397
6403
|
let modifiedCount = 0;
|
|
6398
6404
|
let unmodifiedCount = 0;
|
|
6399
6405
|
let errorCount = 0;
|
|
6400
|
-
const { globby } = await import("./globby-
|
|
6406
|
+
const { globby } = await import("./globby-AKK7FFDP.js");
|
|
6401
6407
|
const files = await globby(slash(globPattern), {
|
|
6402
6408
|
followSymbolicLinks: true,
|
|
6403
6409
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
@@ -6411,7 +6417,7 @@ Please try a different pattern.
|
|
|
6411
6417
|
throw new Error("No files matched");
|
|
6412
6418
|
}
|
|
6413
6419
|
try {
|
|
6414
|
-
const pLimit = (await import("./p-limit-
|
|
6420
|
+
const pLimit = (await import("./p-limit-NXBHDQ53.js")).default;
|
|
6415
6421
|
const limit = pLimit(maxConcurrentTasks);
|
|
6416
6422
|
await Promise.all(
|
|
6417
6423
|
files.map(
|
|
@@ -6571,6 +6577,18 @@ ${err}`);
|
|
|
6571
6577
|
const exportDecls = config._exportDecls;
|
|
6572
6578
|
const defineConfigProps = getConfigProperties(exportDecls, { configType });
|
|
6573
6579
|
const hasNamedExports = defineConfigProps.length > 0;
|
|
6580
|
+
function findDeclarationNodeIndex(declarationName) {
|
|
6581
|
+
return programNode.body.findIndex(
|
|
6582
|
+
(n) => t3.isVariableDeclaration(n) && n.declarations.some((d) => {
|
|
6583
|
+
let declaration = d.init;
|
|
6584
|
+
if (t3.isTSAsExpression(declaration) || t3.isTSSatisfiesExpression(declaration)) {
|
|
6585
|
+
declaration = declaration.expression;
|
|
6586
|
+
}
|
|
6587
|
+
return t3.isIdentifier(d.id) && d.id.name === declarationName && t3.isObjectExpression(declaration);
|
|
6588
|
+
})
|
|
6589
|
+
);
|
|
6590
|
+
}
|
|
6591
|
+
__name(findDeclarationNodeIndex, "findDeclarationNodeIndex");
|
|
6574
6592
|
if (config._exportsObject && hasNamedExports) {
|
|
6575
6593
|
config._exportsObject.properties = [...defineConfigProps, ...config._exportsObject.properties];
|
|
6576
6594
|
programNode.body = removeExportDeclarations(programNode, exportDecls);
|
|
@@ -6580,11 +6598,7 @@ ${err}`);
|
|
|
6580
6598
|
programNode.body.forEach((node) => {
|
|
6581
6599
|
if (t3.isExportDefaultDeclaration(node) && t3.isIdentifier(node.declaration)) {
|
|
6582
6600
|
const declarationName = node.declaration.name;
|
|
6583
|
-
declarationNodeIndex =
|
|
6584
|
-
(n) => t3.isVariableDeclaration(n) && n.declarations.some(
|
|
6585
|
-
(d) => t3.isIdentifier(d.id) && d.id.name === declarationName && t3.isObjectExpression(d.init)
|
|
6586
|
-
)
|
|
6587
|
-
);
|
|
6601
|
+
declarationNodeIndex = findDeclarationNodeIndex(declarationName);
|
|
6588
6602
|
if (declarationNodeIndex !== -1) {
|
|
6589
6603
|
exportDefaultNode = node;
|
|
6590
6604
|
const declarationNode = programNode.body[declarationNodeIndex];
|
|
@@ -6610,11 +6624,7 @@ ${err}`);
|
|
|
6610
6624
|
programNode.body.forEach((node) => {
|
|
6611
6625
|
if (t3.isExportDefaultDeclaration(node) && t3.isIdentifier(node.declaration)) {
|
|
6612
6626
|
const declarationName = node.declaration.name;
|
|
6613
|
-
declarationNodeIndex =
|
|
6614
|
-
(n) => t3.isVariableDeclaration(n) && n.declarations.some(
|
|
6615
|
-
(d) => t3.isIdentifier(d.id) && d.id.name === declarationName && t3.isObjectExpression(d.init)
|
|
6616
|
-
)
|
|
6617
|
-
);
|
|
6627
|
+
declarationNodeIndex = findDeclarationNodeIndex(declarationName);
|
|
6618
6628
|
if (declarationNodeIndex !== -1) {
|
|
6619
6629
|
exportDefaultNode = node;
|
|
6620
6630
|
const declarationNode = programNode.body[declarationNodeIndex];
|
|
@@ -6822,7 +6832,13 @@ ${err}`);
|
|
|
6822
6832
|
}
|
|
6823
6833
|
}
|
|
6824
6834
|
});
|
|
6825
|
-
if (
|
|
6835
|
+
if (transformedStoryExports.size === 0) {
|
|
6836
|
+
logger5.warn(
|
|
6837
|
+
`Skipping codemod for ${info.path}: no stories were transformed. Either there are no stories, file has been already transformed or some stories are written in an unsupported format.`
|
|
6838
|
+
);
|
|
6839
|
+
return info.source;
|
|
6840
|
+
}
|
|
6841
|
+
if (detectedStoryNames.length > 0 && transformedStoryExports.size !== detectedStoryNames.length) {
|
|
6826
6842
|
logger5.warn(
|
|
6827
6843
|
`Skipping codemod for ${info.path}:
|
|
6828
6844
|
Some of the detected stories [${detectedStoryNames.map((name) => `"${name}"`).join(", ")}] would not be transformed because they are written in an unsupported format.`
|
|
@@ -6939,22 +6955,20 @@ var csfFactories = {
|
|
|
6939
6955
|
let useSubPathImports = true;
|
|
6940
6956
|
if (!optionalEnvToBoolean(process.env.IN_STORYBOOK_SANDBOX)) {
|
|
6941
6957
|
logger6.logBox(dedent3`
|
|
6942
|
-
The CSF
|
|
6943
|
-
|
|
6944
|
-
However,
|
|
6945
|
-
|
|
6946
|
-
More info: ${import_picocolors7.default.yellow("https://storybook.js.org/docs/api/csf/csf-
|
|
6947
|
-
|
|
6948
|
-
As we modify your story files, we can create two types of imports:
|
|
6949
|
-
|
|
6950
|
-
- ${import_picocolors7.default.bold("Subpath imports (recommended):")} ${import_picocolors7.default.cyan("`import preview from '#.storybook/preview'`")}
|
|
6951
|
-
- ${import_picocolors7.default.bold("Relative imports (suitable for mono repos):")} ${import_picocolors7.default.cyan("`import preview from '../../.storybook/preview'`")}
|
|
6958
|
+
The CSF Factories format can benefit from using absolute imports of your ${import_picocolors7.default.cyan(previewConfigPath)} file. We can configure that for you, using subpath imports (a node standard), by adjusting the imports property of your package.json.
|
|
6959
|
+
|
|
6960
|
+
However, we cannot broadly recommend it for all projects, because it might not work in some monorepo setups or if you have an outdated tsconfig, use custom paths, or have type alias plugins configured in your project. You can always rerun this codemod and select another option to update your code later.
|
|
6961
|
+
|
|
6962
|
+
More info: ${import_picocolors7.default.yellow("https://storybook.js.org/docs/10/api/csf/csf-next#subpath-imports?ref=upgrade")}
|
|
6952
6963
|
`);
|
|
6953
6964
|
useSubPathImports = await prompt2.select({
|
|
6954
|
-
message: "Which would you like to use?",
|
|
6965
|
+
message: "Which import type would you like to use for your story files?",
|
|
6955
6966
|
options: [
|
|
6956
|
-
{
|
|
6957
|
-
|
|
6967
|
+
{
|
|
6968
|
+
label: "Relative imports (import preview from '../../.storybook/preview')",
|
|
6969
|
+
value: false
|
|
6970
|
+
},
|
|
6971
|
+
{ label: "Subpath imports (import preview from '#.storybook/preview')", value: true }
|
|
6958
6972
|
]
|
|
6959
6973
|
});
|
|
6960
6974
|
}
|
|
@@ -6993,7 +7007,7 @@ var csfFactories = {
|
|
|
6993
7007
|
You can now run Storybook with the new CSF factories format.
|
|
6994
7008
|
|
|
6995
7009
|
For more info, check out the docs:
|
|
6996
|
-
${import_picocolors7.default.yellow("https://storybook.js.org/docs/api/csf/csf-
|
|
7010
|
+
${import_picocolors7.default.yellow("https://storybook.js.org/docs/10/api/csf/csf-next?ref=upgrade")}
|
|
6997
7011
|
`
|
|
6998
7012
|
);
|
|
6999
7013
|
}
|
|
@@ -7513,7 +7527,7 @@ var addonA11yParameters = {
|
|
|
7513
7527
|
}
|
|
7514
7528
|
}
|
|
7515
7529
|
}
|
|
7516
|
-
const { default: pLimit } = await import("./p-limit-
|
|
7530
|
+
const { default: pLimit } = await import("./p-limit-NXBHDQ53.js");
|
|
7517
7531
|
const limit = pLimit(10);
|
|
7518
7532
|
await Promise.all(
|
|
7519
7533
|
storyFilesToUpdate.map(
|
|
@@ -7603,13 +7617,7 @@ var addonExperimentalTest = {
|
|
|
7603
7617
|
// src/automigrate/fixes/addon-globals-api.ts
|
|
7604
7618
|
import { readFile as readFile2, writeFile } from "node:fs/promises";
|
|
7605
7619
|
import { types as t7 } from "storybook/internal/babel";
|
|
7606
|
-
import {
|
|
7607
|
-
formatConfig as formatConfig2,
|
|
7608
|
-
formatCsf,
|
|
7609
|
-
loadConfig as loadConfig4,
|
|
7610
|
-
loadCsf as loadCsf3,
|
|
7611
|
-
writeCsf as writeCsf2
|
|
7612
|
-
} from "storybook/internal/csf-tools";
|
|
7620
|
+
import { formatConfig as formatConfig2, loadConfig as loadConfig4, loadCsf as loadCsf3, writeCsf as writeCsf2 } from "storybook/internal/csf-tools";
|
|
7613
7621
|
var addonGlobalsApi = {
|
|
7614
7622
|
id: "addon-globals-api",
|
|
7615
7623
|
link: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#viewportbackgrounds-addon-synchronized-configuration-and-globals-usage",
|
|
@@ -7737,7 +7745,7 @@ var addonGlobalsApi = {
|
|
|
7737
7745
|
};
|
|
7738
7746
|
async function transformStoryFiles(files, options, dryRun) {
|
|
7739
7747
|
const errors = [];
|
|
7740
|
-
const { default: pLimit } = await import("./p-limit-
|
|
7748
|
+
const { default: pLimit } = await import("./p-limit-NXBHDQ53.js");
|
|
7741
7749
|
const limit = pLimit(10);
|
|
7742
7750
|
await Promise.all(
|
|
7743
7751
|
files.map(
|
|
@@ -7771,22 +7779,45 @@ function transformStoryFile(source, options) {
|
|
|
7771
7779
|
viewportParams = getObjectProperty(parameters, "viewport");
|
|
7772
7780
|
if (viewportParams) {
|
|
7773
7781
|
const defaultViewport = getObjectProperty(viewportParams, "defaultViewport");
|
|
7774
|
-
|
|
7782
|
+
const defaultOrientation = getObjectProperty(viewportParams, "defaultOrientation");
|
|
7783
|
+
const disableViewport = getObjectProperty(viewportParams, "disable");
|
|
7784
|
+
let viewportValue = null;
|
|
7785
|
+
if (defaultViewport) {
|
|
7786
|
+
if (t7.isStringLiteral(defaultViewport)) {
|
|
7787
|
+
viewportValue = defaultViewport;
|
|
7788
|
+
} else if (t7.isMemberExpression(defaultViewport)) {
|
|
7789
|
+
viewportValue = defaultViewport;
|
|
7790
|
+
}
|
|
7791
|
+
}
|
|
7792
|
+
if (viewportValue) {
|
|
7775
7793
|
if (!newGlobals) {
|
|
7776
7794
|
newGlobals = t7.objectExpression([]);
|
|
7777
7795
|
}
|
|
7796
|
+
let isRotated = false;
|
|
7797
|
+
if (defaultOrientation && t7.isStringLiteral(defaultOrientation)) {
|
|
7798
|
+
isRotated = defaultOrientation.value === "portrait";
|
|
7799
|
+
}
|
|
7778
7800
|
newGlobals.properties.push(
|
|
7779
7801
|
t7.objectProperty(
|
|
7780
7802
|
t7.identifier("viewport"),
|
|
7781
7803
|
t7.objectExpression([
|
|
7782
|
-
t7.objectProperty(t7.identifier("value"),
|
|
7783
|
-
t7.objectProperty(t7.identifier("isRotated"), t7.booleanLiteral(
|
|
7804
|
+
t7.objectProperty(t7.identifier("value"), viewportValue),
|
|
7805
|
+
t7.objectProperty(t7.identifier("isRotated"), t7.booleanLiteral(isRotated))
|
|
7784
7806
|
])
|
|
7785
7807
|
)
|
|
7786
7808
|
);
|
|
7787
7809
|
removeProperty(viewportParams, "defaultViewport");
|
|
7788
7810
|
storyHasChanges = true;
|
|
7789
7811
|
}
|
|
7812
|
+
if (defaultOrientation) {
|
|
7813
|
+
removeProperty(viewportParams, "defaultOrientation");
|
|
7814
|
+
storyHasChanges = true;
|
|
7815
|
+
}
|
|
7816
|
+
if (disableViewport && t7.isBooleanLiteral(disableViewport)) {
|
|
7817
|
+
removeProperty(viewportParams, "disable");
|
|
7818
|
+
addProperty(viewportParams, "disabled", disableViewport);
|
|
7819
|
+
storyHasChanges = true;
|
|
7820
|
+
}
|
|
7790
7821
|
}
|
|
7791
7822
|
}
|
|
7792
7823
|
if (needsBackgroundsMigration) {
|
|
@@ -7794,6 +7825,13 @@ function transformStoryFile(source, options) {
|
|
|
7794
7825
|
if (backgroundsParams) {
|
|
7795
7826
|
const defaultBackground = getObjectProperty(backgroundsParams, "default");
|
|
7796
7827
|
const disableBackground = getObjectProperty(backgroundsParams, "disable");
|
|
7828
|
+
const valuesBackground = getObjectProperty(backgroundsParams, "values");
|
|
7829
|
+
if (valuesBackground && t7.isArrayExpression(valuesBackground)) {
|
|
7830
|
+
const optionsObject = transformValuesToOptions(valuesBackground);
|
|
7831
|
+
removeProperty(backgroundsParams, "values");
|
|
7832
|
+
addProperty(backgroundsParams, "options", optionsObject);
|
|
7833
|
+
storyHasChanges = true;
|
|
7834
|
+
}
|
|
7797
7835
|
if (defaultBackground && t7.isStringLiteral(defaultBackground)) {
|
|
7798
7836
|
if (!newGlobals) {
|
|
7799
7837
|
newGlobals = t7.objectExpression([]);
|
|
@@ -8026,7 +8064,7 @@ function transformPackageJson(content) {
|
|
|
8026
8064
|
__name(transformPackageJson, "transformPackageJson");
|
|
8027
8065
|
var transformPackageJsonFiles = /* @__PURE__ */ __name(async (files, dryRun) => {
|
|
8028
8066
|
const errors = [];
|
|
8029
|
-
const { default: pLimit } = await import("./p-limit-
|
|
8067
|
+
const { default: pLimit } = await import("./p-limit-NXBHDQ53.js");
|
|
8030
8068
|
const limit = pLimit(10);
|
|
8031
8069
|
await Promise.all(
|
|
8032
8070
|
files.map(
|
|
@@ -8088,7 +8126,7 @@ var consolidatedImports = {
|
|
|
8088
8126
|
dryRun
|
|
8089
8127
|
);
|
|
8090
8128
|
errors.push(...packageJsonErrors);
|
|
8091
|
-
const { globby } = await import("./globby-
|
|
8129
|
+
const { globby } = await import("./globby-AKK7FFDP.js");
|
|
8092
8130
|
const configFiles = await globby([`${configDir}/**/*`]);
|
|
8093
8131
|
const importErrors = await transformImportFiles(
|
|
8094
8132
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
@@ -8681,7 +8719,7 @@ var replaceImports = /* @__PURE__ */ __name((source, renderer, framework) => {
|
|
|
8681
8719
|
}, "replaceImports");
|
|
8682
8720
|
var transformSourceFiles = /* @__PURE__ */ __name(async (files, renderer, framework, dryRun) => {
|
|
8683
8721
|
const errors = [];
|
|
8684
|
-
const { default: pLimit } = await import("./p-limit-
|
|
8722
|
+
const { default: pLimit } = await import("./p-limit-NXBHDQ53.js");
|
|
8685
8723
|
const limit = pLimit(10);
|
|
8686
8724
|
await Promise.all(
|
|
8687
8725
|
files.map(
|
|
@@ -8783,7 +8821,7 @@ var rendererToFramework = {
|
|
|
8783
8821
|
}
|
|
8784
8822
|
logger12.debug(`
|
|
8785
8823
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
8786
|
-
const { globby } = await import("./globby-
|
|
8824
|
+
const { globby } = await import("./globby-AKK7FFDP.js");
|
|
8787
8825
|
const configFiles = await globby([`${configDir}/**/*`]);
|
|
8788
8826
|
await transformSourceFiles(
|
|
8789
8827
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
@@ -8818,7 +8856,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
8818
8856
|
__name(renameInFile, "renameInFile");
|
|
8819
8857
|
var getDotStorybookReferences = /* @__PURE__ */ __name(async (searchDir) => {
|
|
8820
8858
|
try {
|
|
8821
|
-
const { globby } = await import("./globby-
|
|
8859
|
+
const { globby } = await import("./globby-AKK7FFDP.js");
|
|
8822
8860
|
const { readFile: readFile9 } = await import("node:fs/promises");
|
|
8823
8861
|
const files = await globby(`${searchDir}/**/*`, {
|
|
8824
8862
|
onlyFiles: true,
|
|
@@ -8853,7 +8891,7 @@ var rnstorybookConfig = {
|
|
|
8853
8891
|
const projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd();
|
|
8854
8892
|
const storybookDir = join2(projectDir, ".storybook");
|
|
8855
8893
|
const rnStorybookDir = join2(projectDir, ".rnstorybook");
|
|
8856
|
-
const { globby } = await import("./globby-
|
|
8894
|
+
const { globby } = await import("./globby-AKK7FFDP.js");
|
|
8857
8895
|
const requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
8858
8896
|
if (existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir)) {
|
|
8859
8897
|
return { storybookDir, rnStorybookDir };
|
|
@@ -10637,7 +10675,8 @@ async function promptForAutomigrations(automigrations, options) {
|
|
|
10637
10675
|
const selectedIds = await prompt5.multiselect({
|
|
10638
10676
|
message: "Select automigrations to run",
|
|
10639
10677
|
options: choices,
|
|
10640
|
-
initialValues: choices.filter((c) => c.defaultSelected).map((c) => c.value)
|
|
10678
|
+
initialValues: choices.filter((c) => c.defaultSelected).map((c) => c.value),
|
|
10679
|
+
required: false
|
|
10641
10680
|
});
|
|
10642
10681
|
return automigrations.filter((am) => selectedIds.includes(am.fix.id));
|
|
10643
10682
|
}
|
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_ag35izknai from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_ag35izknai from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_ag35izknai from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_ag35izknai.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ag35izknai.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_ag35izknai.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,4 +22,4 @@ if (majorNodeVersion < 20 || majorNodeVersion === 20 && minorNodeVersion < 19 ||
|
|
|
22
22
|
);
|
|
23
23
|
process.exit(1);
|
|
24
24
|
}
|
|
25
|
-
import("../_node-chunks/run-
|
|
25
|
+
import("../_node-chunks/run-5XLWT5UY.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.12",
|
|
4
4
|
"description": "Storybook CLI: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@storybook/codemod": "10.0.0-beta.
|
|
44
|
+
"@storybook/codemod": "10.0.0-beta.12",
|
|
45
45
|
"@types/semver": "^7.3.4",
|
|
46
46
|
"commander": "^14.0.1",
|
|
47
|
-
"create-storybook": "10.0.0-beta.
|
|
47
|
+
"create-storybook": "10.0.0-beta.12",
|
|
48
48
|
"giget": "^2.0.0",
|
|
49
49
|
"jscodeshift": "^0.15.1",
|
|
50
|
-
"storybook": "10.0.0-beta.
|
|
50
|
+
"storybook": "10.0.0-beta.12",
|
|
51
51
|
"ts-dedent": "^2.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_ppzqbnrhdsn from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_ppzqbnrhdsn from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_ppzqbnrhdsn from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_ppzqbnrhdsn.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_ppzqbnrhdsn.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_ppzqbnrhdsn.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
__name
|
|
14
|
-
} from "./chunk-PANN76P2.js";
|
|
15
|
-
|
|
16
|
-
// src/autoblock/types.ts
|
|
17
|
-
function createBlocker(block) {
|
|
18
|
-
return block;
|
|
19
|
-
}
|
|
20
|
-
__name(createBlocker, "createBlocker");
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
createBlocker
|
|
24
|
-
};
|