@storybook/cli 10.4.0-alpha.1 → 10.4.0-alpha.3
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-ZL3JQAT4.js → block-dependencies-versions-YCAK2B45.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-BO3T5K24.js → block-experimental-addon-test-6OOGC7AT.js} +9 -9
- package/dist/_node-chunks/{block-major-version-IDIMS77A.js → block-major-version-UMH5SPKW.js} +9 -9
- package/dist/_node-chunks/{block-node-version-7ZV2SLRH.js → block-node-version-2FJNVYTA.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-6M76BEIS.js → block-webpack5-frameworks-I5GSRTFS.js} +11 -11
- package/dist/_node-chunks/{chunk-NIFES6PF.js → chunk-F27XMPOK.js} +6 -6
- package/dist/_node-chunks/{chunk-HO7U4ONX.js → chunk-HIYCRUNT.js} +7 -7
- package/dist/_node-chunks/{chunk-AFATUNZD.js → chunk-HNK2T5WJ.js} +7 -7
- package/dist/_node-chunks/{chunk-EUGRJJ6V.js → chunk-NXFPWMJX.js} +15 -15
- package/dist/_node-chunks/chunk-TRSJ7CKG.js +11 -0
- package/dist/_node-chunks/{globby-HCURI6NV.js → globby-QZCCVVXL.js} +8 -8
- package/dist/_node-chunks/{p-limit-FQQAEGAZ.js → p-limit-23UVG3Z5.js} +7 -7
- package/dist/_node-chunks/{run-RB4M7QWV.js → run-NTTATLP2.js} +87 -74
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-62IOOY6E.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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-NXFPWMJX.js";
|
|
15
|
+
import "./chunk-HNK2T5WJ.js";
|
|
16
|
+
import "./chunk-TRSJ7CKG.js";
|
|
17
|
+
import "./chunk-HIYCRUNT.js";
|
|
18
|
+
import "./chunk-F27XMPOK.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_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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-TRSJ7CKG.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HIYCRUNT.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-F27XMPOK.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-IDIMS77A.js → block-major-version-UMH5SPKW.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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-TRSJ7CKG.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HIYCRUNT.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-F27XMPOK.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_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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-TRSJ7CKG.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HIYCRUNT.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-F27XMPOK.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_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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-NXFPWMJX.js";
|
|
15
|
+
import "./chunk-HNK2T5WJ.js";
|
|
16
|
+
import "./chunk-TRSJ7CKG.js";
|
|
17
|
+
import "./chunk-HIYCRUNT.js";
|
|
18
|
+
import "./chunk-F27XMPOK.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_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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-F27XMPOK.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_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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-F27XMPOK.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/fast-glob/out/utils/array.js
|
|
19
19
|
var require_array = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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_s6e3ez3dae.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HNK2T5WJ.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HIYCRUNT.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-F27XMPOK.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-YCAK2B45.js"),
|
|
126
|
+
import("./block-node-version-2FJNVYTA.js"),
|
|
127
|
+
import("./block-webpack5-frameworks-I5GSRTFS.js"),
|
|
128
|
+
import("./block-major-version-UMH5SPKW.js"),
|
|
129
|
+
import("./block-experimental-addon-test-6OOGC7AT.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-23UVG3Z5.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
344
344
|
(configDir) => limit(
|
|
345
345
|
() => processProject({
|
|
346
346
|
configDir,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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-HNK2T5WJ.js";
|
|
25
|
+
import "./chunk-F27XMPOK.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_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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-F27XMPOK.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_6r69wm6sjc8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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-NXFPWMJX.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HNK2T5WJ.js";
|
|
32
32
|
import {
|
|
33
33
|
require_semver
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HIYCRUNT.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-F27XMPOK.js";
|
|
40
40
|
|
|
41
41
|
// ../../../node_modules/envinfo/dist/envinfo.js
|
|
42
42
|
var require_envinfo = __commonJS({
|
|
@@ -4712,7 +4712,7 @@ import { globalSettings } from "storybook/internal/cli";
|
|
|
4712
4712
|
import {
|
|
4713
4713
|
HandledError as HandledError2,
|
|
4714
4714
|
JsPackageManagerFactory as JsPackageManagerFactory3,
|
|
4715
|
-
PackageManagerName as
|
|
4715
|
+
PackageManagerName as PackageManagerName3,
|
|
4716
4716
|
isCI as isCI2,
|
|
4717
4717
|
optionalEnvToBoolean as optionalEnvToBoolean3,
|
|
4718
4718
|
removeAddon as remove,
|
|
@@ -4761,7 +4761,7 @@ function leven(first, second, options) {
|
|
|
4761
4761
|
var import_picocolors16 = __toESM(require_picocolors(), 1);
|
|
4762
4762
|
|
|
4763
4763
|
// package.json
|
|
4764
|
-
var version = "10.4.0-alpha.
|
|
4764
|
+
var version = "10.4.0-alpha.3";
|
|
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-QZCCVVXL.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-23UVG3Z5.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5640
5640
|
await Promise.all(
|
|
5641
5641
|
files.map(
|
|
5642
5642
|
(file) => limit(async () => {
|
|
@@ -5766,7 +5766,17 @@ async function configToCsfFactory(info, { configType, frameworkPackage }, { dryR
|
|
|
5766
5766
|
return logger4.log(`Error when parsing ${info.path}, skipping:
|
|
5767
5767
|
${err}`), info.source;
|
|
5768
5768
|
}
|
|
5769
|
-
let methodName = configType === "main" ? "defineMain" : "definePreview", programNode = config._ast.program, exportDecls = config._exportDecls, defineConfigProps = getConfigProperties(exportDecls, { configType }), hasNamedExports = defineConfigProps.length > 0
|
|
5769
|
+
let methodName = configType === "main" ? "defineMain" : "definePreview", programNode = config._ast.program, exportDecls = config._exportDecls, defineConfigProps = getConfigProperties(exportDecls, { configType }), hasNamedExports = defineConfigProps.length > 0, isAlreadyTransformed = programNode.body.some((node) => {
|
|
5770
|
+
if (!t2.isExportDefaultDeclaration(node)) return !1;
|
|
5771
|
+
let declaration = typeof config._unwrap == "function" ? config._unwrap(node.declaration) : node.declaration;
|
|
5772
|
+
return t2.isCallExpression(declaration) && t2.isIdentifier(declaration.callee) && declaration.callee.name === methodName;
|
|
5773
|
+
}), expectedImportSource = frameworkPackage + (configType === "main" ? "/node" : ""), hasCorrectImport = programNode.body.some(
|
|
5774
|
+
(node) => t2.isImportDeclaration(node) && node.importKind !== "type" && node.source.value === expectedImportSource && node.specifiers.some(
|
|
5775
|
+
(spec) => t2.isImportSpecifier(spec) && t2.isIdentifier(spec.imported) && spec.imported.name === methodName
|
|
5776
|
+
)
|
|
5777
|
+
), shouldSkipTransform = configType === "main" ? isAlreadyTransformed : isAlreadyTransformed && !hasNamedExports;
|
|
5778
|
+
if (shouldSkipTransform && hasCorrectImport)
|
|
5779
|
+
return info.source;
|
|
5770
5780
|
function findDeclarationNodeIndex(declarationName) {
|
|
5771
5781
|
return programNode.body.findIndex(
|
|
5772
5782
|
(n) => t2.isVariableDeclaration(n) && n.declarations.some((d) => {
|
|
@@ -5775,46 +5785,48 @@ ${err}`), info.source;
|
|
|
5775
5785
|
})
|
|
5776
5786
|
);
|
|
5777
5787
|
}
|
|
5778
|
-
if (
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
t2.
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5788
|
+
if (!shouldSkipTransform) {
|
|
5789
|
+
if (config._exportsObject && hasNamedExports) {
|
|
5790
|
+
config._exportsObject.properties = [...defineConfigProps, ...config._exportsObject.properties], programNode.body = removeExportDeclarations(programNode, exportDecls);
|
|
5791
|
+
let defineConfigCall = t2.callExpression(t2.identifier(methodName), [config._exportsObject]), exportDefaultNode = null, declarationNodeIndex = -1;
|
|
5792
|
+
programNode.body.forEach((node) => {
|
|
5793
|
+
if (t2.isExportDefaultDeclaration(node) && t2.isIdentifier(node.declaration)) {
|
|
5794
|
+
let declarationName = node.declaration.name;
|
|
5795
|
+
if (declarationNodeIndex = findDeclarationNodeIndex(declarationName), declarationNodeIndex !== -1) {
|
|
5796
|
+
exportDefaultNode = node;
|
|
5797
|
+
let declarationNode = programNode.body[declarationNodeIndex];
|
|
5798
|
+
if (t2.isVariableDeclaration(declarationNode)) {
|
|
5799
|
+
let id = declarationNode.declarations[0].id;
|
|
5800
|
+
t2.isIdentifier(id) && id.name && programNode.body.splice(declarationNodeIndex, 1);
|
|
5801
|
+
}
|
|
5802
|
+
}
|
|
5803
|
+
} else t2.isExportDefaultDeclaration(node) && t2.isObjectExpression(node.declaration) && (exportDefaultNode = node);
|
|
5804
|
+
}), exportDefaultNode !== null && (exportDefaultNode.declaration = defineConfigCall);
|
|
5805
|
+
} else if (config._exportsObject) {
|
|
5806
|
+
let defineConfigCall = t2.callExpression(t2.identifier(methodName), [config._exportsObject]), exportDefaultNode = null, declarationNodeIndex = -1;
|
|
5807
|
+
programNode.body.forEach((node) => {
|
|
5808
|
+
let declaration = t2.isExportDefaultDeclaration(node) && config._unwrap(node.declaration);
|
|
5809
|
+
if (t2.isExportDefaultDeclaration(node) && t2.isIdentifier(declaration)) {
|
|
5810
|
+
let declarationName = declaration.name;
|
|
5811
|
+
if (declarationNodeIndex = findDeclarationNodeIndex(declarationName), declarationNodeIndex !== -1) {
|
|
5812
|
+
exportDefaultNode = node;
|
|
5813
|
+
let declarationNode = programNode.body[declarationNodeIndex];
|
|
5814
|
+
if (t2.isVariableDeclaration(declarationNode)) {
|
|
5815
|
+
let id = declarationNode.declarations[0].id;
|
|
5816
|
+
t2.isIdentifier(id) && id.name && programNode.body.splice(declarationNodeIndex, 1);
|
|
5817
|
+
}
|
|
5818
|
+
}
|
|
5819
|
+
} else t2.isExportDefaultDeclaration(node) && t2.isObjectExpression(node.declaration) && (exportDefaultNode = node);
|
|
5820
|
+
}), exportDefaultNode !== null && (exportDefaultNode.declaration = defineConfigCall);
|
|
5821
|
+
} else if (hasNamedExports) {
|
|
5822
|
+
let defineConfigCall = t2.callExpression(t2.identifier(methodName), [
|
|
5823
|
+
t2.objectExpression(defineConfigProps)
|
|
5824
|
+
]);
|
|
5825
|
+
programNode.body = removeExportDeclarations(programNode, exportDecls), programNode.body.push(t2.exportDefaultDeclaration(defineConfigCall));
|
|
5826
|
+
} else if (configType === "preview") {
|
|
5827
|
+
let defineConfigCall = t2.callExpression(t2.identifier(methodName), [t2.objectExpression([])]);
|
|
5828
|
+
programNode.body.push(t2.exportDefaultDeclaration(defineConfigCall));
|
|
5829
|
+
}
|
|
5818
5830
|
}
|
|
5819
5831
|
let configImport = t2.importDeclaration(
|
|
5820
5832
|
[t2.importSpecifier(t2.identifier(methodName), t2.identifier(methodName))],
|
|
@@ -6467,7 +6479,7 @@ var addonA11yParameters = {
|
|
|
6467
6479
|
errors.push({ file: previewFileToUpdate, error });
|
|
6468
6480
|
}
|
|
6469
6481
|
}
|
|
6470
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6482
|
+
let { default: pLimit } = await import("./p-limit-23UVG3Z5.js"), limit = pLimit(10);
|
|
6471
6483
|
if (await Promise.all(
|
|
6472
6484
|
storyFilesToUpdate.map(
|
|
6473
6485
|
(file) => limit(async () => {
|
|
@@ -6621,7 +6633,7 @@ var addonGlobalsApi = {
|
|
|
6621
6633
|
}
|
|
6622
6634
|
};
|
|
6623
6635
|
async function transformStoryFiles(files, options, dryRun) {
|
|
6624
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6636
|
+
let errors = [], { default: pLimit } = await import("./p-limit-23UVG3Z5.js"), limit = pLimit(10);
|
|
6625
6637
|
return await Promise.all(
|
|
6626
6638
|
files.map(
|
|
6627
6639
|
(file) => limit(async () => {
|
|
@@ -6813,7 +6825,7 @@ function transformPackageJson(content) {
|
|
|
6813
6825
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
6814
6826
|
}
|
|
6815
6827
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
6816
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6828
|
+
let errors = [], { default: pLimit } = await import("./p-limit-23UVG3Z5.js"), limit = pLimit(10);
|
|
6817
6829
|
return await Promise.all(
|
|
6818
6830
|
files.map(
|
|
6819
6831
|
(file) => limit(async () => {
|
|
@@ -6852,7 +6864,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
6852
6864
|
dryRun
|
|
6853
6865
|
);
|
|
6854
6866
|
errors.push(...packageJsonErrors);
|
|
6855
|
-
let { globby } = await import("./globby-
|
|
6867
|
+
let { globby } = await import("./globby-QZCCVVXL.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles(
|
|
6856
6868
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
6857
6869
|
{
|
|
6858
6870
|
...consolidatedPackages,
|
|
@@ -7205,7 +7217,7 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig = async (mainConfigPath
|
|
|
7205
7217
|
]);
|
|
7206
7218
|
}
|
|
7207
7219
|
mainConfigPath && (logger11.debug("Updating main config file..."), await transformMainConfig(mainConfigPath, dryRun)), logger11.debug("Scanning and updating import statements...");
|
|
7208
|
-
let { globby } = await import("./globby-
|
|
7220
|
+
let { globby } = await import("./globby-QZCCVVXL.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles2(
|
|
7209
7221
|
allFiles,
|
|
7210
7222
|
{
|
|
7211
7223
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7415,7 +7427,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7415
7427
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
7416
7428
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
7417
7429
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
7418
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7430
|
+
let errors = [], { default: pLimit } = await import("./p-limit-23UVG3Z5.js"), limit = pLimit(10);
|
|
7419
7431
|
return await Promise.all(
|
|
7420
7432
|
files.map(
|
|
7421
7433
|
(file) => limit(async () => {
|
|
@@ -7482,7 +7494,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7482
7494
|
continue;
|
|
7483
7495
|
logger13.debug(`
|
|
7484
7496
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
7485
|
-
let { globby } = await import("./globby-
|
|
7497
|
+
let { globby } = await import("./globby-QZCCVVXL.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
7486
7498
|
await transformSourceFiles(
|
|
7487
7499
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7488
7500
|
rendererPackage,
|
|
@@ -7512,7 +7524,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
7512
7524
|
}
|
|
7513
7525
|
var getDotStorybookReferences = async (searchDir) => {
|
|
7514
7526
|
try {
|
|
7515
|
-
let { globby } = await import("./globby-
|
|
7527
|
+
let { globby } = await import("./globby-QZCCVVXL.js"), { readFile: readFile10 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
7516
7528
|
onlyFiles: !0,
|
|
7517
7529
|
gitignore: !0
|
|
7518
7530
|
}), referencedFiles = [];
|
|
@@ -7533,7 +7545,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7533
7545
|
async check({ packageManager, mainConfigPath }) {
|
|
7534
7546
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
7535
7547
|
return null;
|
|
7536
|
-
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-
|
|
7548
|
+
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-QZCCVVXL.js"), requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
7537
7549
|
return existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
7538
7550
|
},
|
|
7539
7551
|
prompt() {
|
|
@@ -8039,6 +8051,7 @@ var import_cross_spawn2 = __toESM(require_cross_spawn(), 1);
|
|
|
8039
8051
|
import { existsSync as existsSync3 } from "node:fs";
|
|
8040
8052
|
import { mkdir as mkdir2, readdir, rm } from "node:fs/promises";
|
|
8041
8053
|
import { isAbsolute as isAbsolute2 } from "node:path";
|
|
8054
|
+
import { PackageManagerName } from "storybook/internal/common";
|
|
8042
8055
|
import {
|
|
8043
8056
|
JsPackageManagerFactory,
|
|
8044
8057
|
isCI,
|
|
@@ -8954,8 +8967,8 @@ var toChoices = (c) => ({ label: allTemplates[c].name, value: c }), sandbox = as
|
|
|
8954
8967
|
init,
|
|
8955
8968
|
...options
|
|
8956
8969
|
}) => {
|
|
8957
|
-
let selectedConfig = allTemplates[filterValue], templateId = selectedConfig ? filterValue : null,
|
|
8958
|
-
force:
|
|
8970
|
+
let selectedConfig = allTemplates[filterValue], templateId = selectedConfig ? filterValue : null, packageManager = JsPackageManagerFactory.getPackageManager({
|
|
8971
|
+
force: PackageManagerName.NPM
|
|
8959
8972
|
}), latestVersion = await packageManager.latestVersion("storybook"), nextVersion = await packageManager.latestVersion("storybook@next") ?? "0.0.0", currentVersion = versions4.storybook, isPrerelease = (0, import_semver6.prerelease)(currentVersion), isOutdated = (0, import_semver6.lt)(currentVersion, isPrerelease ? nextVersion : latestVersion), downloadType = !isOutdated && init ? "after-storybook" : "before-storybook", branch = isPrerelease ? "next" : "main", messages2 = {
|
|
8960
8973
|
welcome: `Creating a Storybook ${import_picocolors14.default.bold(currentVersion)} sandbox..`,
|
|
8961
8974
|
notLatest: import_picocolors14.default.red(dedent14`
|
|
@@ -9088,7 +9101,7 @@ async function promptSelectedTemplate(choices) {
|
|
|
9088
9101
|
|
|
9089
9102
|
// src/upgrade.ts
|
|
9090
9103
|
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1), import_picocolors15 = __toESM(require_picocolors(), 1), import_semver7 = __toESM(require_semver(), 1);
|
|
9091
|
-
import { PackageManagerName } from "storybook/internal/common";
|
|
9104
|
+
import { PackageManagerName as PackageManagerName2 } from "storybook/internal/common";
|
|
9092
9105
|
import { HandledError, JsPackageManagerFactory as JsPackageManagerFactory2, isCorePackage as isCorePackage2 } from "storybook/internal/common";
|
|
9093
9106
|
import {
|
|
9094
9107
|
CLI_COLORS as CLI_COLORS4,
|
|
@@ -9527,7 +9540,7 @@ Upgrade interrupted by user.`), allProjects.length > 1 && await sendMultiUpgrade
|
|
|
9527
9540
|
storybookProjects,
|
|
9528
9541
|
options
|
|
9529
9542
|
), rootPackageManager = storybookProjects.length > 1 ? JsPackageManagerFactory2.getPackageManager({ force: options.packageManager }) : storybookProjects[0].packageManager;
|
|
9530
|
-
rootPackageManager.type === "npm" ? await rootPackageManager.installDependencies({ force: !0 }) : await rootPackageManager.installDependencies(), rootPackageManager.type !==
|
|
9543
|
+
rootPackageManager.type === "npm" ? await rootPackageManager.installDependencies({ force: !0 }) : await rootPackageManager.installDependencies(), rootPackageManager.type !== PackageManagerName2.YARN1 && rootPackageManager.isStorybookInMonorepo() && (logger21.warn(
|
|
9531
9544
|
"Since you are in a monorepo, we advise you to deduplicate your dependencies. We can do this for you but it might take some time."
|
|
9532
9545
|
), options.yes || await prompt6.confirm({
|
|
9533
9546
|
message: `Execute ${rootPackageManager.getRunCommand("dedupe")}?`,
|
|
@@ -9613,7 +9626,7 @@ var handleCommandFailure = (logFilePath) => async (error) => {
|
|
|
9613
9626
|
});
|
|
9614
9627
|
command("init").description("Initialize Storybook into your project").option("-f --force", "Force add Storybook").option("-s --skip-install", "Skip installing deps").addOption(
|
|
9615
9628
|
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9616
|
-
Object.values(
|
|
9629
|
+
Object.values(PackageManagerName3)
|
|
9617
9630
|
)
|
|
9618
9631
|
).option("--use-pnp", "Enable PnP mode for Yarn 2+").option("-p --parser <babel | babylon | flow | ts | tsx>", "jscodeshift parser").option("-t --type <type>", "Add Storybook for a specific project type").option("-y --yes", "Answer yes to all prompts").option("-b --builder <webpack5 | vite>", "Builder library").option("-l --linkable", "Prepare installation for link (contributor helper)").option(
|
|
9619
9632
|
"--dev",
|
|
@@ -9625,7 +9638,7 @@ command("init").description("Initialize Storybook into your project").option("-f
|
|
|
9625
9638
|
);
|
|
9626
9639
|
command("add <addon>").description("Add an addon to your Storybook").addOption(
|
|
9627
9640
|
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9628
|
-
Object.values(
|
|
9641
|
+
Object.values(PackageManagerName3)
|
|
9629
9642
|
)
|
|
9630
9643
|
).option("-c, --config-dir <dir-name>", "Directory where to load Storybook configurations from").option("--skip-install", "Skip installing deps").option("-s --skip-postinstall", "Skip package specific postinstall config modifications").option("-y --yes", "Skip prompting the user").option("--skip-doctor", "Skip doctor check").action((addonName, options) => {
|
|
9631
9644
|
withTelemetry("add", { cliOptions: options }, async () => {
|
|
@@ -9634,7 +9647,7 @@ command("add <addon>").description("Add an addon to your Storybook").addOption(
|
|
|
9634
9647
|
});
|
|
9635
9648
|
command("remove <addon>").description("Remove an addon from your Storybook").addOption(
|
|
9636
9649
|
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9637
|
-
Object.values(
|
|
9650
|
+
Object.values(PackageManagerName3)
|
|
9638
9651
|
)
|
|
9639
9652
|
).option("-c, --config-dir <dir-name>", "Directory where to load Storybook configurations from").option("-s --skip-install", "Skip installing deps").action(
|
|
9640
9653
|
(addonName, options) => withTelemetry("remove", { cliOptions: options }, async () => {
|
|
@@ -9652,7 +9665,7 @@ command("remove <addon>").description("Remove an addon from your Storybook").add
|
|
|
9652
9665
|
);
|
|
9653
9666
|
command("upgrade").description(`Upgrade your Storybook packages to v${versions5.storybook}`).addOption(
|
|
9654
9667
|
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9655
|
-
Object.values(
|
|
9668
|
+
Object.values(PackageManagerName3)
|
|
9656
9669
|
)
|
|
9657
9670
|
).option("-y --yes", "Skip prompting the user").option("-f --force", "force the upgrade, skipping autoblockers").option("-n --dry-run", "Only check for upgrades, do not install").option("-s --skip-check", "Skip postinstall version and automigration checks").option(
|
|
9658
9671
|
"-c, --config-dir <dir-name...>",
|
|
@@ -9704,7 +9717,7 @@ command("link <repo-url-or-directory>").description("Pull down a repro from a UR
|
|
|
9704
9717
|
);
|
|
9705
9718
|
command("automigrate [fixId]").description("Check storybook for incompatibilities or migrations and apply fixes").option("-y --yes", "Skip prompting the user").option("-n --dry-run", "Only check for fixes, do not actually run them").addOption(
|
|
9706
9719
|
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9707
|
-
Object.values(
|
|
9720
|
+
Object.values(PackageManagerName3)
|
|
9708
9721
|
)
|
|
9709
9722
|
).option("-l --list", "List available migrations").option("-c, --config-dir <dir-name>", "Directory of Storybook configurations to migrate").option("-s --skip-install", "Skip installing deps").option(
|
|
9710
9723
|
"--renderer <renderer-pkg-name>",
|
|
@@ -9716,7 +9729,7 @@ command("automigrate [fixId]").description("Check storybook for incompatibilitie
|
|
|
9716
9729
|
});
|
|
9717
9730
|
command("doctor").description("Check Storybook for known problems and provide suggestions or fixes").addOption(
|
|
9718
9731
|
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
9719
|
-
Object.values(
|
|
9732
|
+
Object.values(PackageManagerName3)
|
|
9720
9733
|
)
|
|
9721
9734
|
).option("-c, --config-dir <dir-name>", "Directory of Storybook configuration").action(async (options) => {
|
|
9722
9735
|
withTelemetry("doctor", { cliOptions: options }, async () => {
|
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_6r69wm6sjc8 from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_6r69wm6sjc8 from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_6r69wm6sjc8 from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_6r69wm6sjc8.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6r69wm6sjc8.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_6r69wm6sjc8.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-NTTATLP2.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.3",
|
|
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.3",
|
|
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.3",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.4.0-alpha.
|
|
45
|
+
"storybook": "10.4.0-alpha.3",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_s6e3ez3dae from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_s6e3ez3dae from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_s6e3ez3dae from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_s6e3ez3dae.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_s6e3ez3dae.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_s6e3ez3dae.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|