@storybook/cli 10.4.0-alpha.6 → 10.4.0-alpha.8
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-4SW3RNVN.js → block-dependencies-versions-KAQ5OGIY.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-TDPASIS2.js → block-experimental-addon-test-KUQXSPGU.js} +9 -9
- package/dist/_node-chunks/{block-major-version-J7ESXIQG.js → block-major-version-OPMG63V3.js} +9 -9
- package/dist/_node-chunks/{block-node-version-BIZPQOM2.js → block-node-version-FCO4PM62.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-5ZBMYNTI.js → block-webpack5-frameworks-GJ4QI6G7.js} +11 -11
- package/dist/_node-chunks/{chunk-YUTHJZPM.js → chunk-ABAAUOSF.js} +6 -6
- package/dist/_node-chunks/{chunk-NJN6GSDE.js → chunk-ESNUSFMN.js} +15 -15
- package/dist/_node-chunks/{chunk-IC6SBKCK.js → chunk-HO4ISOZ6.js} +7 -7
- package/dist/_node-chunks/chunk-KRWZUTLX.js +11 -0
- package/dist/_node-chunks/{chunk-6UAUIVYK.js → chunk-UN5QQNB6.js} +7 -7
- package/dist/_node-chunks/{globby-PV3WLQER.js → globby-D6DJUDT4.js} +8 -8
- package/dist/_node-chunks/{p-limit-SGBWKVRU.js → p-limit-373GHOOY.js} +7 -7
- package/dist/_node-chunks/{run-DZQPWIEN.js → run-ZEG5DUPG.js} +22 -22
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-CFJUBP6A.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.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-ESNUSFMN.js";
|
|
15
|
+
import "./chunk-HO4ISOZ6.js";
|
|
16
|
+
import "./chunk-KRWZUTLX.js";
|
|
17
|
+
import "./chunk-UN5QQNB6.js";
|
|
18
|
+
import "./chunk-ABAAUOSF.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_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.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-KRWZUTLX.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UN5QQNB6.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ABAAUOSF.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-J7ESXIQG.js → block-major-version-OPMG63V3.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.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-KRWZUTLX.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UN5QQNB6.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ABAAUOSF.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_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.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-KRWZUTLX.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UN5QQNB6.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ABAAUOSF.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_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.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-ESNUSFMN.js";
|
|
15
|
+
import "./chunk-HO4ISOZ6.js";
|
|
16
|
+
import "./chunk-KRWZUTLX.js";
|
|
17
|
+
import "./chunk-UN5QQNB6.js";
|
|
18
|
+
import "./chunk-ABAAUOSF.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-webpack5-frameworks.ts
|
|
21
21
|
var minimalVersionsMap = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.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_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.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_adcalpw4sjt.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HO4ISOZ6.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UN5QQNB6.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ABAAUOSF.js";
|
|
23
23
|
|
|
24
24
|
// ../../../node_modules/picocolors/picocolors.js
|
|
25
25
|
var require_picocolors = __commonJS({
|
|
@@ -122,11 +122,11 @@ var import_picocolors2 = __toESM(require_picocolors(), 1), import_semver = __toE
|
|
|
122
122
|
// src/autoblock/index.ts
|
|
123
123
|
var blockers = () => [
|
|
124
124
|
// add/remove blockers here
|
|
125
|
-
import("./block-dependencies-versions-
|
|
126
|
-
import("./block-node-version-
|
|
127
|
-
import("./block-webpack5-frameworks-
|
|
128
|
-
import("./block-major-version-
|
|
129
|
-
import("./block-experimental-addon-test-
|
|
125
|
+
import("./block-dependencies-versions-KAQ5OGIY.js"),
|
|
126
|
+
import("./block-node-version-FCO4PM62.js"),
|
|
127
|
+
import("./block-webpack5-frameworks-GJ4QI6G7.js"),
|
|
128
|
+
import("./block-major-version-OPMG63V3.js"),
|
|
129
|
+
import("./block-experimental-addon-test-KUQXSPGU.js")
|
|
130
130
|
], autoblock = async (options, list = blockers()) => list.length === 0 ? null : await Promise.all(
|
|
131
131
|
list.map(async (i) => {
|
|
132
132
|
let blocker = (await i).blocker;
|
|
@@ -340,7 +340,7 @@ var processProject = async ({
|
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
}, collectProjects = async (options, configDirs, onProjectScanStart) => {
|
|
343
|
-
let { default: pLimit } = await import("./p-limit-
|
|
343
|
+
let { default: pLimit } = await import("./p-limit-373GHOOY.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
344
344
|
(configDir) => limit(
|
|
345
345
|
() => processProject({
|
|
346
346
|
configDir,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.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-ABAAUOSF.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/fast-glob/out/utils/array.js
|
|
19
19
|
var require_array = __commonJS({
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.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-ABAAUOSF.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.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-HO4ISOZ6.js";
|
|
25
|
+
import "./chunk-ABAAUOSF.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_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.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-ABAAUOSF.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_heajmwsix5v from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -25,18 +25,18 @@ import {
|
|
|
25
25
|
shortenPath,
|
|
26
26
|
updateMainConfig,
|
|
27
27
|
upgradeStorybookDependencies
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ESNUSFMN.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HO4ISOZ6.js";
|
|
32
32
|
import {
|
|
33
33
|
require_semver
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UN5QQNB6.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ABAAUOSF.js";
|
|
40
40
|
|
|
41
41
|
// ../../../node_modules/envinfo/dist/envinfo.js
|
|
42
42
|
var require_envinfo = __commonJS({
|
|
@@ -4761,7 +4761,7 @@ function leven(first, second, options) {
|
|
|
4761
4761
|
var import_picocolors17 = __toESM(require_picocolors(), 1);
|
|
4762
4762
|
|
|
4763
4763
|
// package.json
|
|
4764
|
-
var version = "10.4.0-alpha.
|
|
4764
|
+
var version = "10.4.0-alpha.8";
|
|
4765
4765
|
|
|
4766
4766
|
// src/add.ts
|
|
4767
4767
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -5625,7 +5625,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
5625
5625
|
import { promises as fs } from "fs";
|
|
5626
5626
|
var maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
|
|
5627
5627
|
async function runCodemod(globPattern = "**/*.{stories,story}.{js,jsx,ts,tsx,mjs,mjsx,mts,mtsx}", transform, { dryRun = !1, skipFormatting = !1 } = {}) {
|
|
5628
|
-
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-
|
|
5628
|
+
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-D6DJUDT4.js"), files = await globby(slash(globPattern), {
|
|
5629
5629
|
followSymbolicLinks: !0,
|
|
5630
5630
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
5631
5631
|
});
|
|
@@ -5636,7 +5636,7 @@ Please try a different pattern.
|
|
|
5636
5636
|
`
|
|
5637
5637
|
), new Error("No files matched");
|
|
5638
5638
|
try {
|
|
5639
|
-
let pLimit = (await import("./p-limit-
|
|
5639
|
+
let pLimit = (await import("./p-limit-373GHOOY.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5640
5640
|
await Promise.all(
|
|
5641
5641
|
files.map(
|
|
5642
5642
|
(file) => limit(async () => {
|
|
@@ -6479,7 +6479,7 @@ var addonA11yParameters = {
|
|
|
6479
6479
|
errors.push({ file: previewFileToUpdate, error });
|
|
6480
6480
|
}
|
|
6481
6481
|
}
|
|
6482
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6482
|
+
let { default: pLimit } = await import("./p-limit-373GHOOY.js"), limit = pLimit(10);
|
|
6483
6483
|
if (await Promise.all(
|
|
6484
6484
|
storyFilesToUpdate.map(
|
|
6485
6485
|
(file) => limit(async () => {
|
|
@@ -6633,7 +6633,7 @@ var addonGlobalsApi = {
|
|
|
6633
6633
|
}
|
|
6634
6634
|
};
|
|
6635
6635
|
async function transformStoryFiles(files, options, dryRun) {
|
|
6636
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6636
|
+
let errors = [], { default: pLimit } = await import("./p-limit-373GHOOY.js"), limit = pLimit(10);
|
|
6637
6637
|
return await Promise.all(
|
|
6638
6638
|
files.map(
|
|
6639
6639
|
(file) => limit(async () => {
|
|
@@ -6825,7 +6825,7 @@ function transformPackageJson(content) {
|
|
|
6825
6825
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
6826
6826
|
}
|
|
6827
6827
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
6828
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6828
|
+
let errors = [], { default: pLimit } = await import("./p-limit-373GHOOY.js"), limit = pLimit(10);
|
|
6829
6829
|
return await Promise.all(
|
|
6830
6830
|
files.map(
|
|
6831
6831
|
(file) => limit(async () => {
|
|
@@ -6864,7 +6864,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
6864
6864
|
dryRun
|
|
6865
6865
|
);
|
|
6866
6866
|
errors.push(...packageJsonErrors);
|
|
6867
|
-
let { globby } = await import("./globby-
|
|
6867
|
+
let { globby } = await import("./globby-D6DJUDT4.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles(
|
|
6868
6868
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
6869
6869
|
{
|
|
6870
6870
|
...consolidatedPackages,
|
|
@@ -7220,7 +7220,7 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig = async (mainConfigPath
|
|
|
7220
7220
|
]);
|
|
7221
7221
|
}
|
|
7222
7222
|
mainConfigPath && (logger11.debug("Updating main config file..."), await transformMainConfig(mainConfigPath, dryRun)), logger11.debug("Scanning and updating import statements...");
|
|
7223
|
-
let { globby } = await import("./globby-
|
|
7223
|
+
let { globby } = await import("./globby-D6DJUDT4.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles2(
|
|
7224
7224
|
allFiles,
|
|
7225
7225
|
{
|
|
7226
7226
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7430,7 +7430,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7430
7430
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
7431
7431
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
7432
7432
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
7433
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7433
|
+
let errors = [], { default: pLimit } = await import("./p-limit-373GHOOY.js"), limit = pLimit(10);
|
|
7434
7434
|
return await Promise.all(
|
|
7435
7435
|
files.map(
|
|
7436
7436
|
(file) => limit(async () => {
|
|
@@ -7497,7 +7497,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7497
7497
|
continue;
|
|
7498
7498
|
logger13.debug(`
|
|
7499
7499
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
7500
|
-
let { globby } = await import("./globby-
|
|
7500
|
+
let { globby } = await import("./globby-D6DJUDT4.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
7501
7501
|
await transformSourceFiles(
|
|
7502
7502
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7503
7503
|
rendererPackage,
|
|
@@ -7527,7 +7527,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
7527
7527
|
}
|
|
7528
7528
|
var getDotStorybookReferences = async (searchDir) => {
|
|
7529
7529
|
try {
|
|
7530
|
-
let { globby } = await import("./globby-
|
|
7530
|
+
let { globby } = await import("./globby-D6DJUDT4.js"), { readFile: readFile10 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
7531
7531
|
onlyFiles: !0,
|
|
7532
7532
|
gitignore: !0
|
|
7533
7533
|
}), referencedFiles = [];
|
|
@@ -7548,7 +7548,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7548
7548
|
async check({ packageManager, mainConfigPath }) {
|
|
7549
7549
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
7550
7550
|
return null;
|
|
7551
|
-
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-
|
|
7551
|
+
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-D6DJUDT4.js"), requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
7552
7552
|
return existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
7553
7553
|
},
|
|
7554
7554
|
prompt() {
|
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_heajmwsix5v from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_heajmwsix5v from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_heajmwsix5v from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_heajmwsix5v.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_heajmwsix5v.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_heajmwsix5v.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -19,4 +19,4 @@ var [majorNodeVersion, minorNodeVersion] = process.versions.node.split(".").map(
|
|
|
19
19
|
dedent`To run Storybook, you need Node.js version 20.19+ or 22.12+.
|
|
20
20
|
You are currently running Node.js ${process.version}. Please upgrade your Node.js installation.`
|
|
21
21
|
), process.exit(1));
|
|
22
|
-
import("../_node-chunks/run-
|
|
22
|
+
import("../_node-chunks/run-ZEG5DUPG.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.4.0-alpha.
|
|
3
|
+
"version": "10.4.0-alpha.8",
|
|
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.4.0-alpha.
|
|
40
|
+
"@storybook/codemod": "10.4.0-alpha.8",
|
|
41
41
|
"@types/semver": "^7.7.1",
|
|
42
42
|
"commander": "^14.0.2",
|
|
43
|
-
"create-storybook": "10.4.0-alpha.
|
|
43
|
+
"create-storybook": "10.4.0-alpha.8",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.4.0-alpha.
|
|
45
|
+
"storybook": "10.4.0-alpha.8",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_adcalpw4sjt from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|