@storybook/cli 10.5.0-alpha.8 → 10.5.0-alpha.9
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-TYXDHF4M.js → block-dependencies-versions-G4PBOCAC.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-QDSM7TAY.js → block-experimental-addon-test-NQF42D5U.js} +9 -9
- package/dist/_node-chunks/{block-major-version-R4MLVHIM.js → block-major-version-63ZSLYOJ.js} +9 -9
- package/dist/_node-chunks/{block-node-version-P2VNPZDR.js → block-node-version-4ZRY3QE7.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-KT2UEGMT.js → block-webpack5-frameworks-I6CPADUE.js} +11 -11
- package/dist/_node-chunks/{chunk-F2MVAAFB.js → chunk-BSBBEU5H.js} +6 -6
- package/dist/_node-chunks/chunk-DC3OFSYD.js +11 -0
- package/dist/_node-chunks/{chunk-64KD75IF.js → chunk-G3QWX57M.js} +15 -15
- package/dist/_node-chunks/{chunk-QQOQYUZ4.js → chunk-NEQBSLOH.js} +7 -7
- package/dist/_node-chunks/{chunk-SYABIR5U.js → chunk-U5E6A2WI.js} +7 -7
- package/dist/_node-chunks/{globby-DRQLSNQE.js → globby-J2TWZHWX.js} +8 -8
- package/dist/_node-chunks/{p-limit-E5OKBQ37.js → p-limit-U4RLH5UW.js} +7 -7
- package/dist/_node-chunks/{run-XMLQXC4W.js → run-6YKJ4Y4E.js} +29 -31
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-C4GIL3H5.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.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-G3QWX57M.js";
|
|
15
|
+
import "./chunk-NEQBSLOH.js";
|
|
16
|
+
import "./chunk-DC3OFSYD.js";
|
|
17
|
+
import "./chunk-U5E6A2WI.js";
|
|
18
|
+
import "./chunk-BSBBEU5H.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_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.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-DC3OFSYD.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U5E6A2WI.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BSBBEU5H.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-R4MLVHIM.js → block-major-version-63ZSLYOJ.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.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-DC3OFSYD.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U5E6A2WI.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BSBBEU5H.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_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.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-DC3OFSYD.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U5E6A2WI.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BSBBEU5H.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_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.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-G3QWX57M.js";
|
|
15
|
+
import "./chunk-NEQBSLOH.js";
|
|
16
|
+
import "./chunk-DC3OFSYD.js";
|
|
17
|
+
import "./chunk-U5E6A2WI.js";
|
|
18
|
+
import "./chunk-BSBBEU5H.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_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.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_tipl12vviur.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NEQBSLOH.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-U5E6A2WI.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BSBBEU5H.js";
|
|
23
23
|
|
|
24
24
|
// ../../../node_modules/picocolors/picocolors.js
|
|
25
25
|
var require_picocolors = __commonJS({
|
|
@@ -126,11 +126,11 @@ var import_picocolors2 = __toESM(require_picocolors(), 1), import_semver = __toE
|
|
|
126
126
|
// src/autoblock/index.ts
|
|
127
127
|
var blockers = () => [
|
|
128
128
|
// add/remove blockers here
|
|
129
|
-
import("./block-dependencies-versions-
|
|
130
|
-
import("./block-node-version-
|
|
131
|
-
import("./block-webpack5-frameworks-
|
|
132
|
-
import("./block-major-version-
|
|
133
|
-
import("./block-experimental-addon-test-
|
|
129
|
+
import("./block-dependencies-versions-G4PBOCAC.js"),
|
|
130
|
+
import("./block-node-version-4ZRY3QE7.js"),
|
|
131
|
+
import("./block-webpack5-frameworks-I6CPADUE.js"),
|
|
132
|
+
import("./block-major-version-63ZSLYOJ.js"),
|
|
133
|
+
import("./block-experimental-addon-test-NQF42D5U.js")
|
|
134
134
|
], autoblock = async (options, list = blockers()) => list.length === 0 ? null : await Promise.all(
|
|
135
135
|
list.map(async (i) => {
|
|
136
136
|
let blocker = (await i).blocker;
|
|
@@ -296,7 +296,7 @@ var processProject = async ({
|
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
298
|
}, collectProjects = async (options, configDirs, onProjectScanStart) => {
|
|
299
|
-
let { default: pLimit } = await import("./p-limit-
|
|
299
|
+
let { default: pLimit } = await import("./p-limit-U4RLH5UW.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
300
300
|
(configDir) => limit(
|
|
301
301
|
() => processProject({
|
|
302
302
|
configDir,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.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-BSBBEU5H.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/fast-glob/out/utils/array.js
|
|
19
19
|
var require_array = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.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-BSBBEU5H.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_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.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-NEQBSLOH.js";
|
|
25
|
+
import "./chunk-BSBBEU5H.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_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.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-BSBBEU5H.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_u0ce3e1luw from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -26,18 +26,18 @@ import {
|
|
|
26
26
|
up,
|
|
27
27
|
updateMainConfig,
|
|
28
28
|
upgradeStorybookDependencies
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-G3QWX57M.js";
|
|
30
30
|
import {
|
|
31
31
|
slash
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NEQBSLOH.js";
|
|
33
33
|
import {
|
|
34
34
|
require_semver
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-U5E6A2WI.js";
|
|
36
36
|
import {
|
|
37
37
|
__commonJS,
|
|
38
38
|
__require,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BSBBEU5H.js";
|
|
41
41
|
|
|
42
42
|
// ../../../node_modules/envinfo/dist/envinfo.js
|
|
43
43
|
var require_envinfo = __commonJS({
|
|
@@ -4761,7 +4761,7 @@ function leven(first, second, options) {
|
|
|
4761
4761
|
var import_picocolors19 = __toESM(require_picocolors(), 1);
|
|
4762
4762
|
|
|
4763
4763
|
// package.json
|
|
4764
|
-
var version = "10.5.0-alpha.
|
|
4764
|
+
var version = "10.5.0-alpha.9";
|
|
4765
4765
|
|
|
4766
4766
|
// src/add.ts
|
|
4767
4767
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -5661,7 +5661,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
5661
5661
|
import { promises as fs } from "fs";
|
|
5662
5662
|
var maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
|
|
5663
5663
|
async function runCodemod(globPattern = "**/*.{stories,story}.{js,jsx,ts,tsx,mjs,mjsx,mts,mtsx}", transform, { dryRun = !1, skipFormatting = !1 } = {}) {
|
|
5664
|
-
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-
|
|
5664
|
+
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-J2TWZHWX.js"), files = await globby(slash(globPattern), {
|
|
5665
5665
|
followSymbolicLinks: !0,
|
|
5666
5666
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
5667
5667
|
});
|
|
@@ -5672,7 +5672,7 @@ Please try a different pattern.
|
|
|
5672
5672
|
`
|
|
5673
5673
|
), new Error("No files matched");
|
|
5674
5674
|
try {
|
|
5675
|
-
let pLimit = (await import("./p-limit-
|
|
5675
|
+
let pLimit = (await import("./p-limit-U4RLH5UW.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5676
5676
|
await Promise.all(
|
|
5677
5677
|
files.map(
|
|
5678
5678
|
(file) => limit(async () => {
|
|
@@ -6558,7 +6558,7 @@ export default defineConfig({
|
|
|
6558
6558
|
let angularJsonPath = `${pkgJsonPath.replace(/[/\\]package\.json$/, "")}/angular.json`, { changed, disablesCompodoc } = await transformJsonFile(angularJsonPath, dryRun);
|
|
6559
6559
|
disableCompodoc ||= disablesCompodoc, changed && logger7.debug(`Updated Angular CLI builder references in ${angularJsonPath}`);
|
|
6560
6560
|
}
|
|
6561
|
-
let { globby } = await import("./globby-
|
|
6561
|
+
let { globby } = await import("./globby-J2TWZHWX.js"), projectJsonFiles = await globby(["**/project.json"], {
|
|
6562
6562
|
ignore: ["**/node_modules/**", "**/dist/**"],
|
|
6563
6563
|
absolute: !0
|
|
6564
6564
|
});
|
|
@@ -6796,7 +6796,7 @@ var addonA11yParameters = {
|
|
|
6796
6796
|
errors.push({ file: previewFileToUpdate, error });
|
|
6797
6797
|
}
|
|
6798
6798
|
}
|
|
6799
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6799
|
+
let { default: pLimit } = await import("./p-limit-U4RLH5UW.js"), limit = pLimit(10);
|
|
6800
6800
|
if (await Promise.all(
|
|
6801
6801
|
storyFilesToUpdate.map(
|
|
6802
6802
|
(file) => limit(async () => {
|
|
@@ -6950,7 +6950,7 @@ var addonGlobalsApi = {
|
|
|
6950
6950
|
}
|
|
6951
6951
|
};
|
|
6952
6952
|
async function transformStoryFiles(files, options, dryRun) {
|
|
6953
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6953
|
+
let errors = [], { default: pLimit } = await import("./p-limit-U4RLH5UW.js"), limit = pLimit(10);
|
|
6954
6954
|
return await Promise.all(
|
|
6955
6955
|
files.map(
|
|
6956
6956
|
(file) => limit(async () => {
|
|
@@ -7177,7 +7177,7 @@ function transformPackageJson(content) {
|
|
|
7177
7177
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
7178
7178
|
}
|
|
7179
7179
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
7180
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7180
|
+
let errors = [], { default: pLimit } = await import("./p-limit-U4RLH5UW.js"), limit = pLimit(10);
|
|
7181
7181
|
return await Promise.all(
|
|
7182
7182
|
files.map(
|
|
7183
7183
|
(file) => limit(async () => {
|
|
@@ -7216,7 +7216,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
7216
7216
|
dryRun
|
|
7217
7217
|
);
|
|
7218
7218
|
errors.push(...packageJsonErrors);
|
|
7219
|
-
let { globby } = await import("./globby-
|
|
7219
|
+
let { globby } = await import("./globby-J2TWZHWX.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles2(
|
|
7220
7220
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7221
7221
|
{
|
|
7222
7222
|
...consolidatedPackages,
|
|
@@ -7572,7 +7572,7 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig2 = async (mainConfigPat
|
|
|
7572
7572
|
]);
|
|
7573
7573
|
}
|
|
7574
7574
|
mainConfigPath && (logger13.debug("Updating main config file..."), await transformMainConfig2(mainConfigPath, dryRun)), logger13.debug("Scanning and updating import statements...");
|
|
7575
|
-
let { globby } = await import("./globby-
|
|
7575
|
+
let { globby } = await import("./globby-J2TWZHWX.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles3(
|
|
7576
7576
|
allFiles,
|
|
7577
7577
|
{
|
|
7578
7578
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7650,7 +7650,7 @@ var REACT_VITE_PACKAGE = "@storybook/react-vite", TANSTACK_REACT_PACKAGE = "@sto
|
|
|
7650
7650
|
configDir,
|
|
7651
7651
|
storiesPaths
|
|
7652
7652
|
}) => {
|
|
7653
|
-
let { globby } = await import("./globby-
|
|
7653
|
+
let { globby } = await import("./globby-J2TWZHWX.js"), configFiles = configDir ? await globby([`${configDir}/**/*.{ts,tsx,js,jsx,mjs,cjs}`], {
|
|
7654
7654
|
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
7655
7655
|
}) : [], candidateFiles = Array.from(
|
|
7656
7656
|
/* @__PURE__ */ new Set([...previewConfigPath ? [previewConfigPath] : [], ...configFiles, ...storiesPaths])
|
|
@@ -7869,7 +7869,7 @@ var REACT_VITE_PACKAGE = "@storybook/react-vite", TANSTACK_REACT_PACKAGE = "@sto
|
|
|
7869
7869
|
logger14.step(`Migrating from ${REACT_VITE_PACKAGE} to ${TANSTACK_REACT_PACKAGE}...`), dryRun ? logger14.debug("Dry run: Skipping package.json updates.") : (logger14.debug("Updating package.json files..."), await packageManager.removeDependencies([REACT_VITE_PACKAGE]), await packageManager.addDependencies({ type: "devDependencies", skipInstall: !0 }, [
|
|
7870
7870
|
`${TANSTACK_REACT_PACKAGE}@${storybookVersion}`
|
|
7871
7871
|
])), mainConfigPath && (logger14.debug("Updating main config file..."), await transformMainConfig3(mainConfigPath, dryRun)), logger14.debug("Scanning and updating import statements...");
|
|
7872
|
-
let { globby } = await import("./globby-
|
|
7872
|
+
let { globby } = await import("./globby-J2TWZHWX.js"), configFiles = configDir ? await globby([`${configDir}/**/*.{ts,tsx,js,jsx,mjs,cjs}`], {
|
|
7873
7873
|
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
7874
7874
|
}) : [], allFiles = [...storiesPaths, ...configFiles, previewConfigPath].filter(
|
|
7875
7875
|
Boolean
|
|
@@ -8110,7 +8110,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
8110
8110
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
8111
8111
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
8112
8112
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
8113
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
8113
|
+
let errors = [], { default: pLimit } = await import("./p-limit-U4RLH5UW.js"), limit = pLimit(10);
|
|
8114
8114
|
return await Promise.all(
|
|
8115
8115
|
files.map(
|
|
8116
8116
|
(file) => limit(async () => {
|
|
@@ -8177,7 +8177,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
8177
8177
|
continue;
|
|
8178
8178
|
logger16.debug(`
|
|
8179
8179
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
8180
|
-
let { globby } = await import("./globby-
|
|
8180
|
+
let { globby } = await import("./globby-J2TWZHWX.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
8181
8181
|
await transformSourceFiles(
|
|
8182
8182
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
8183
8183
|
rendererPackage,
|
|
@@ -8283,7 +8283,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
8283
8283
|
}
|
|
8284
8284
|
var getDotStorybookReferences = async (searchDir) => {
|
|
8285
8285
|
try {
|
|
8286
|
-
let { globby } = await import("./globby-
|
|
8286
|
+
let { globby } = await import("./globby-J2TWZHWX.js"), { readFile: readFile12 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
8287
8287
|
onlyFiles: !0,
|
|
8288
8288
|
gitignore: !0
|
|
8289
8289
|
}), referencedFiles = [];
|
|
@@ -8304,7 +8304,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
8304
8304
|
async check({ packageManager, mainConfigPath }) {
|
|
8305
8305
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
8306
8306
|
return null;
|
|
8307
|
-
let projectDir = mainConfigPath ? join4(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join4(projectDir, ".storybook"), rnStorybookDir = join4(projectDir, RN_STORYBOOK_DIR), { globby } = await import("./globby-
|
|
8307
|
+
let projectDir = mainConfigPath ? join4(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join4(projectDir, ".storybook"), rnStorybookDir = join4(projectDir, RN_STORYBOOK_DIR), { globby } = await import("./globby-J2TWZHWX.js"), requiresFiles = await globby(join4(storybookDir, "storybook.requires.*"));
|
|
8308
8308
|
return existsSync4(storybookDir) && requiresFiles.length > 0 && !existsSync4(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
8309
8309
|
},
|
|
8310
8310
|
prompt() {
|
|
@@ -9659,11 +9659,10 @@ var baseTemplates = {
|
|
|
9659
9659
|
extraDevDependencies: ["@storybook/addon-webpack5-compiler-babel", "prop-types"],
|
|
9660
9660
|
removeDependencies: ["babel-preset-react-app"],
|
|
9661
9661
|
resolutions: {
|
|
9662
|
-
"@babel/core": "^
|
|
9663
|
-
"@babel/preset-env": "^
|
|
9664
|
-
"@babel/preset-react": "^
|
|
9665
|
-
"@babel/preset-typescript": "^
|
|
9666
|
-
"babel-loader": "^8.0.0"
|
|
9662
|
+
"@babel/core": "^7",
|
|
9663
|
+
"@babel/preset-env": "^7",
|
|
9664
|
+
"@babel/preset-react": "^7",
|
|
9665
|
+
"@babel/preset-typescript": "^7"
|
|
9667
9666
|
},
|
|
9668
9667
|
editAddons: (addons) => [...addons, "@storybook/addon-webpack5-compiler-babel"].filter(
|
|
9669
9668
|
(a) => a !== "@storybook/addon-webpack5-compiler-swc"
|
|
@@ -9671,7 +9670,6 @@ var baseTemplates = {
|
|
|
9671
9670
|
mainConfig: {
|
|
9672
9671
|
swc: { swcrc: !1 },
|
|
9673
9672
|
features: {
|
|
9674
|
-
babelRemoveBugfixes: !0,
|
|
9675
9673
|
experimentalTestSyntax: !0
|
|
9676
9674
|
}
|
|
9677
9675
|
}
|
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_u0ce3e1luw from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_u0ce3e1luw from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_u0ce3e1luw from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_u0ce3e1luw.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u0ce3e1luw.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_u0ce3e1luw.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -20,4 +20,4 @@ isNodeVersionSupported(major, minor, patch) || (logger.error(
|
|
|
20
20
|
dedent`To run Storybook, you need Node.js version ${MIN_SUPPORTED_NODE_DESCRIPTION}.
|
|
21
21
|
You are currently running Node.js ${process.version}. Please upgrade your Node.js installation.`
|
|
22
22
|
), process.exit(1));
|
|
23
|
-
import("../_node-chunks/run-
|
|
23
|
+
import("../_node-chunks/run-6YKJ4Y4E.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.5.0-alpha.
|
|
3
|
+
"version": "10.5.0-alpha.9",
|
|
4
4
|
"description": "Storybook CLI: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"!src/**/*"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@storybook/codemod": "10.5.0-alpha.
|
|
40
|
+
"@storybook/codemod": "10.5.0-alpha.9",
|
|
41
41
|
"@types/semver": "^7.7.1",
|
|
42
42
|
"commander": "^14.0.2",
|
|
43
|
-
"create-storybook": "10.5.0-alpha.
|
|
43
|
+
"create-storybook": "10.5.0-alpha.9",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.5.0-alpha.
|
|
45
|
+
"storybook": "10.5.0-alpha.9",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_tipl12vviur from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_tipl12vviur from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_tipl12vviur from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_tipl12vviur.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_tipl12vviur.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_tipl12vviur.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|