@storybook/cli 10.0.0-beta.11 → 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-7POAP5CS.js → block-dependencies-versions-3PFABHN5.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-I4EOMCLS.js → block-experimental-addon-test-ZHZVCR6A.js} +9 -9
- package/dist/_node-chunks/{block-major-version-RCJUYIKB.js → block-major-version-57PRYR4V.js} +9 -9
- package/dist/_node-chunks/{block-node-version-Z7YPREG4.js → block-node-version-K3BJUOGA.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-LE67UWAX.js → block-webpack5-frameworks-OJO5LDO3.js} +11 -11
- package/dist/_node-chunks/{chunk-NFKEHU2E.js → chunk-2UCIPRVD.js} +7 -7
- package/dist/_node-chunks/{chunk-SMXJ4I6L.js → chunk-B6YQQJER.js} +15 -15
- package/dist/_node-chunks/{chunk-O5WIZGX3.js → chunk-H7P5F6IC.js} +7 -7
- package/dist/_node-chunks/chunk-KFQFIDH4.js +24 -0
- package/dist/_node-chunks/{chunk-IGCHJJSD.js → chunk-PBUPMGDF.js} +6 -6
- package/dist/_node-chunks/{globby-GKKVMRKJ.js → globby-AKK7FFDP.js} +8 -8
- package/dist/_node-chunks/{p-limit-OLNVT6KG.js → p-limit-NXBHDQ53.js} +7 -7
- package/dist/_node-chunks/{run-H2A2DHVZ.js → run-5XLWT5UY.js} +51 -40
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-VMECXQUV.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-RCJUYIKB.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_veyyxx6nh0j.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_veyyxx6nh0j.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(
|
|
@@ -6826,7 +6832,13 @@ ${err}`);
|
|
|
6826
6832
|
}
|
|
6827
6833
|
}
|
|
6828
6834
|
});
|
|
6829
|
-
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) {
|
|
6830
6842
|
logger5.warn(
|
|
6831
6843
|
`Skipping codemod for ${info.path}:
|
|
6832
6844
|
Some of the detected stories [${detectedStoryNames.map((name) => `"${name}"`).join(", ")}] would not be transformed because they are written in an unsupported format.`
|
|
@@ -6943,22 +6955,20 @@ var csfFactories = {
|
|
|
6943
6955
|
let useSubPathImports = true;
|
|
6944
6956
|
if (!optionalEnvToBoolean(process.env.IN_STORYBOOK_SANDBOX)) {
|
|
6945
6957
|
logger6.logBox(dedent3`
|
|
6946
|
-
The CSF
|
|
6947
|
-
|
|
6948
|
-
However,
|
|
6949
|
-
|
|
6950
|
-
More info: ${import_picocolors7.default.yellow("https://storybook.js.org/docs/api/csf/csf-
|
|
6951
|
-
|
|
6952
|
-
As we modify your story files, we can create two types of imports:
|
|
6953
|
-
|
|
6954
|
-
- ${import_picocolors7.default.bold("Subpath imports (recommended):")} ${import_picocolors7.default.cyan("`import preview from '#.storybook/preview'`")}
|
|
6955
|
-
- ${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")}
|
|
6956
6963
|
`);
|
|
6957
6964
|
useSubPathImports = await prompt2.select({
|
|
6958
|
-
message: "Which would you like to use?",
|
|
6965
|
+
message: "Which import type would you like to use for your story files?",
|
|
6959
6966
|
options: [
|
|
6960
|
-
{
|
|
6961
|
-
|
|
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 }
|
|
6962
6972
|
]
|
|
6963
6973
|
});
|
|
6964
6974
|
}
|
|
@@ -6997,7 +7007,7 @@ var csfFactories = {
|
|
|
6997
7007
|
You can now run Storybook with the new CSF factories format.
|
|
6998
7008
|
|
|
6999
7009
|
For more info, check out the docs:
|
|
7000
|
-
${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")}
|
|
7001
7011
|
`
|
|
7002
7012
|
);
|
|
7003
7013
|
}
|
|
@@ -7517,7 +7527,7 @@ var addonA11yParameters = {
|
|
|
7517
7527
|
}
|
|
7518
7528
|
}
|
|
7519
7529
|
}
|
|
7520
|
-
const { default: pLimit } = await import("./p-limit-
|
|
7530
|
+
const { default: pLimit } = await import("./p-limit-NXBHDQ53.js");
|
|
7521
7531
|
const limit = pLimit(10);
|
|
7522
7532
|
await Promise.all(
|
|
7523
7533
|
storyFilesToUpdate.map(
|
|
@@ -7735,7 +7745,7 @@ var addonGlobalsApi = {
|
|
|
7735
7745
|
};
|
|
7736
7746
|
async function transformStoryFiles(files, options, dryRun) {
|
|
7737
7747
|
const errors = [];
|
|
7738
|
-
const { default: pLimit } = await import("./p-limit-
|
|
7748
|
+
const { default: pLimit } = await import("./p-limit-NXBHDQ53.js");
|
|
7739
7749
|
const limit = pLimit(10);
|
|
7740
7750
|
await Promise.all(
|
|
7741
7751
|
files.map(
|
|
@@ -8054,7 +8064,7 @@ function transformPackageJson(content) {
|
|
|
8054
8064
|
__name(transformPackageJson, "transformPackageJson");
|
|
8055
8065
|
var transformPackageJsonFiles = /* @__PURE__ */ __name(async (files, dryRun) => {
|
|
8056
8066
|
const errors = [];
|
|
8057
|
-
const { default: pLimit } = await import("./p-limit-
|
|
8067
|
+
const { default: pLimit } = await import("./p-limit-NXBHDQ53.js");
|
|
8058
8068
|
const limit = pLimit(10);
|
|
8059
8069
|
await Promise.all(
|
|
8060
8070
|
files.map(
|
|
@@ -8116,7 +8126,7 @@ var consolidatedImports = {
|
|
|
8116
8126
|
dryRun
|
|
8117
8127
|
);
|
|
8118
8128
|
errors.push(...packageJsonErrors);
|
|
8119
|
-
const { globby } = await import("./globby-
|
|
8129
|
+
const { globby } = await import("./globby-AKK7FFDP.js");
|
|
8120
8130
|
const configFiles = await globby([`${configDir}/**/*`]);
|
|
8121
8131
|
const importErrors = await transformImportFiles(
|
|
8122
8132
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
@@ -8709,7 +8719,7 @@ var replaceImports = /* @__PURE__ */ __name((source, renderer, framework) => {
|
|
|
8709
8719
|
}, "replaceImports");
|
|
8710
8720
|
var transformSourceFiles = /* @__PURE__ */ __name(async (files, renderer, framework, dryRun) => {
|
|
8711
8721
|
const errors = [];
|
|
8712
|
-
const { default: pLimit } = await import("./p-limit-
|
|
8722
|
+
const { default: pLimit } = await import("./p-limit-NXBHDQ53.js");
|
|
8713
8723
|
const limit = pLimit(10);
|
|
8714
8724
|
await Promise.all(
|
|
8715
8725
|
files.map(
|
|
@@ -8811,7 +8821,7 @@ var rendererToFramework = {
|
|
|
8811
8821
|
}
|
|
8812
8822
|
logger12.debug(`
|
|
8813
8823
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
8814
|
-
const { globby } = await import("./globby-
|
|
8824
|
+
const { globby } = await import("./globby-AKK7FFDP.js");
|
|
8815
8825
|
const configFiles = await globby([`${configDir}/**/*`]);
|
|
8816
8826
|
await transformSourceFiles(
|
|
8817
8827
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
@@ -8846,7 +8856,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
8846
8856
|
__name(renameInFile, "renameInFile");
|
|
8847
8857
|
var getDotStorybookReferences = /* @__PURE__ */ __name(async (searchDir) => {
|
|
8848
8858
|
try {
|
|
8849
|
-
const { globby } = await import("./globby-
|
|
8859
|
+
const { globby } = await import("./globby-AKK7FFDP.js");
|
|
8850
8860
|
const { readFile: readFile9 } = await import("node:fs/promises");
|
|
8851
8861
|
const files = await globby(`${searchDir}/**/*`, {
|
|
8852
8862
|
onlyFiles: true,
|
|
@@ -8881,7 +8891,7 @@ var rnstorybookConfig = {
|
|
|
8881
8891
|
const projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd();
|
|
8882
8892
|
const storybookDir = join2(projectDir, ".storybook");
|
|
8883
8893
|
const rnStorybookDir = join2(projectDir, ".rnstorybook");
|
|
8884
|
-
const { globby } = await import("./globby-
|
|
8894
|
+
const { globby } = await import("./globby-AKK7FFDP.js");
|
|
8885
8895
|
const requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
8886
8896
|
if (existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir)) {
|
|
8887
8897
|
return { storybookDir, rnStorybookDir };
|
|
@@ -10665,7 +10675,8 @@ async function promptForAutomigrations(automigrations, options) {
|
|
|
10665
10675
|
const selectedIds = await prompt5.multiselect({
|
|
10666
10676
|
message: "Select automigrations to run",
|
|
10667
10677
|
options: choices,
|
|
10668
|
-
initialValues: choices.filter((c) => c.defaultSelected).map((c) => c.value)
|
|
10678
|
+
initialValues: choices.filter((c) => c.defaultSelected).map((c) => c.value),
|
|
10679
|
+
required: false
|
|
10669
10680
|
});
|
|
10670
10681
|
return automigrations.filter((am) => selectedIds.includes(am.fix.id));
|
|
10671
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_veyyxx6nh0j from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.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-IGCHJJSD.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
|
-
};
|