@storybook/cli 10.2.0-alpha.5 → 10.2.0-alpha.7
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-7SVXY5YM.js → block-dependencies-versions-W3M2OBTJ.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-TTRTO3BB.js → block-experimental-addon-test-2J5YBTNI.js} +9 -9
- package/dist/_node-chunks/{block-major-version-BRP3KYIV.js → block-major-version-5T2ZVQLA.js} +9 -9
- package/dist/_node-chunks/{block-node-version-KW43ETNH.js → block-node-version-YZDIOKIN.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-53RFMG7O.js → block-webpack5-frameworks-UEFCKNTY.js} +11 -11
- package/dist/_node-chunks/{chunk-Q76IVFMZ.js → chunk-FIPOEUDG.js} +7 -7
- package/dist/_node-chunks/chunk-KLLEP4KP.js +11 -0
- package/dist/_node-chunks/{chunk-2GPOXHLV.js → chunk-OTBNV2PQ.js} +7 -7
- package/dist/_node-chunks/{chunk-XWK2TAVF.js → chunk-P6ZCITVS.js} +6 -6
- package/dist/_node-chunks/{chunk-O7BI2NMC.js → chunk-Y6P3ECEY.js} +15 -15
- package/dist/_node-chunks/{globby-L4F5U6LY.js → globby-4CQCVABG.js} +8 -8
- package/dist/_node-chunks/{p-limit-6G3D7UGA.js → p-limit-TF3V4NJZ.js} +7 -7
- package/dist/_node-chunks/{run-AL4R2ANQ.js → run-SUWZWKCU.js} +40 -31
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-THCSKARM.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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-Y6P3ECEY.js";
|
|
15
|
+
import "./chunk-FIPOEUDG.js";
|
|
16
|
+
import "./chunk-KLLEP4KP.js";
|
|
17
|
+
import "./chunk-OTBNV2PQ.js";
|
|
18
|
+
import "./chunk-P6ZCITVS.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_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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-KLLEP4KP.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OTBNV2PQ.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-P6ZCITVS.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-BRP3KYIV.js → block-major-version-5T2ZVQLA.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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-KLLEP4KP.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OTBNV2PQ.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-P6ZCITVS.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_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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-KLLEP4KP.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OTBNV2PQ.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-P6ZCITVS.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_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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-Y6P3ECEY.js";
|
|
15
|
+
import "./chunk-FIPOEUDG.js";
|
|
16
|
+
import "./chunk-KLLEP4KP.js";
|
|
17
|
+
import "./chunk-OTBNV2PQ.js";
|
|
18
|
+
import "./chunk-P6ZCITVS.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_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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-P6ZCITVS.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_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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-P6ZCITVS.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_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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_70ukk4nq7t.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FIPOEUDG.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OTBNV2PQ.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-P6ZCITVS.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-W3M2OBTJ.js"),
|
|
126
|
+
import("./block-node-version-YZDIOKIN.js"),
|
|
127
|
+
import("./block-webpack5-frameworks-UEFCKNTY.js"),
|
|
128
|
+
import("./block-major-version-5T2ZVQLA.js"),
|
|
129
|
+
import("./block-experimental-addon-test-2J5YBTNI.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-TF3V4NJZ.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_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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-FIPOEUDG.js";
|
|
25
|
+
import "./chunk-P6ZCITVS.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_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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-P6ZCITVS.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_ughxvadxvz from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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-Y6P3ECEY.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FIPOEUDG.js";
|
|
32
32
|
import {
|
|
33
33
|
require_semver
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OTBNV2PQ.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-P6ZCITVS.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_picocolors16 = __toESM(require_picocolors(), 1);
|
|
4762
4762
|
|
|
4763
4763
|
// package.json
|
|
4764
|
-
var version = "10.2.0-alpha.
|
|
4764
|
+
var version = "10.2.0-alpha.7";
|
|
4765
4765
|
|
|
4766
4766
|
// src/add.ts
|
|
4767
4767
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -5624,7 +5624,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
5624
5624
|
import { promises as fs } from "fs";
|
|
5625
5625
|
var maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
|
|
5626
5626
|
async function runCodemod(globPattern = "**/*.stories.*", transform, { dryRun = !1, skipFormatting = !1 } = {}) {
|
|
5627
|
-
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-
|
|
5627
|
+
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-4CQCVABG.js"), files = await globby(slash(globPattern), {
|
|
5628
5628
|
followSymbolicLinks: !0,
|
|
5629
5629
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
5630
5630
|
});
|
|
@@ -5635,7 +5635,7 @@ Please try a different pattern.
|
|
|
5635
5635
|
`
|
|
5636
5636
|
), new Error("No files matched");
|
|
5637
5637
|
try {
|
|
5638
|
-
let pLimit = (await import("./p-limit-
|
|
5638
|
+
let pLimit = (await import("./p-limit-TF3V4NJZ.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5639
5639
|
await Promise.all(
|
|
5640
5640
|
files.map(
|
|
5641
5641
|
(file) => limit(async () => {
|
|
@@ -6049,7 +6049,7 @@ var csfFactories = {
|
|
|
6049
6049
|
|
|
6050
6050
|
However, we cannot broadly recommend it for all projects, because it might not work in some monorepo setups or if you have an outdated tsconfig, use custom paths, or have type alias plugins configured in your project. You can always rerun this codemod and select another option to update your code later.
|
|
6051
6051
|
|
|
6052
|
-
More info: ${import_picocolors7.default.yellow("https://storybook.js.org/docs/
|
|
6052
|
+
More info: ${import_picocolors7.default.yellow("https://storybook.js.org/docs/api/csf/csf-next?ref=upgrade#previewmeta")}
|
|
6053
6053
|
`), useSubPathImports = await prompt2.select({
|
|
6054
6054
|
message: "Which import type would you like to use for your story files?",
|
|
6055
6055
|
options: [
|
|
@@ -6085,7 +6085,7 @@ var csfFactories = {
|
|
|
6085
6085
|
You can now run Storybook with the new CSF factories format.
|
|
6086
6086
|
|
|
6087
6087
|
For more info, check out the docs:
|
|
6088
|
-
${import_picocolors7.default.yellow("https://storybook.js.org/docs/
|
|
6088
|
+
${import_picocolors7.default.yellow("https://storybook.js.org/docs/api/csf/csf-next?ref=upgrade")}
|
|
6089
6089
|
`
|
|
6090
6090
|
);
|
|
6091
6091
|
}
|
|
@@ -6395,7 +6395,7 @@ var addonA11yParameters = {
|
|
|
6395
6395
|
errors.push({ file: previewFileToUpdate, error });
|
|
6396
6396
|
}
|
|
6397
6397
|
}
|
|
6398
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6398
|
+
let { default: pLimit } = await import("./p-limit-TF3V4NJZ.js"), limit = pLimit(10);
|
|
6399
6399
|
if (await Promise.all(
|
|
6400
6400
|
storyFilesToUpdate.map(
|
|
6401
6401
|
(file) => limit(async () => {
|
|
@@ -6549,7 +6549,7 @@ var addonGlobalsApi = {
|
|
|
6549
6549
|
}
|
|
6550
6550
|
};
|
|
6551
6551
|
async function transformStoryFiles(files, options, dryRun) {
|
|
6552
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6552
|
+
let errors = [], { default: pLimit } = await import("./p-limit-TF3V4NJZ.js"), limit = pLimit(10);
|
|
6553
6553
|
return await Promise.all(
|
|
6554
6554
|
files.map(
|
|
6555
6555
|
(file) => limit(async () => {
|
|
@@ -6741,7 +6741,7 @@ function transformPackageJson(content) {
|
|
|
6741
6741
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
6742
6742
|
}
|
|
6743
6743
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
6744
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6744
|
+
let errors = [], { default: pLimit } = await import("./p-limit-TF3V4NJZ.js"), limit = pLimit(10);
|
|
6745
6745
|
return await Promise.all(
|
|
6746
6746
|
files.map(
|
|
6747
6747
|
(file) => limit(async () => {
|
|
@@ -6780,7 +6780,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
6780
6780
|
dryRun
|
|
6781
6781
|
);
|
|
6782
6782
|
errors.push(...packageJsonErrors);
|
|
6783
|
-
let { globby } = await import("./globby-
|
|
6783
|
+
let { globby } = await import("./globby-4CQCVABG.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles(
|
|
6784
6784
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
6785
6785
|
{
|
|
6786
6786
|
...consolidatedPackages,
|
|
@@ -6815,7 +6815,7 @@ import { logger as logger9 } from "storybook/internal/node-logger";
|
|
|
6815
6815
|
import { dedent as dedent7 } from "ts-dedent";
|
|
6816
6816
|
var eslintPlugin = {
|
|
6817
6817
|
id: "eslintPlugin",
|
|
6818
|
-
link: "https://storybook.js.org/docs/
|
|
6818
|
+
link: "https://storybook.js.org/docs/configure/integration/eslint-plugin",
|
|
6819
6819
|
async check({ packageManager }) {
|
|
6820
6820
|
let {
|
|
6821
6821
|
hasEslint,
|
|
@@ -7074,7 +7074,7 @@ async function transformPreviewFile2(source, filePath) {
|
|
|
7074
7074
|
import { readFile as readFile6, writeFile as writeFile5 } from "node:fs/promises";
|
|
7075
7075
|
import { transformImportFiles as transformImportFiles2 } from "storybook/internal/common";
|
|
7076
7076
|
import { logger as logger11 } from "storybook/internal/node-logger";
|
|
7077
|
-
var transformMainConfig = async (mainConfigPath, dryRun) => {
|
|
7077
|
+
var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig = async (mainConfigPath, dryRun) => {
|
|
7078
7078
|
try {
|
|
7079
7079
|
let content = await readFile6(mainConfigPath, "utf-8");
|
|
7080
7080
|
if (!content.includes("@storybook/nextjs"))
|
|
@@ -7121,10 +7121,19 @@ var transformMainConfig = async (mainConfigPath, dryRun) => {
|
|
|
7121
7121
|
}) {
|
|
7122
7122
|
if (!result)
|
|
7123
7123
|
return;
|
|
7124
|
-
logger11.step("Migrating from @storybook/nextjs to @storybook/nextjs-vite..."), dryRun
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7124
|
+
if (logger11.step("Migrating from @storybook/nextjs to @storybook/nextjs-vite..."), dryRun)
|
|
7125
|
+
logger11.debug("Dry run: Skipping package.json updates.");
|
|
7126
|
+
else {
|
|
7127
|
+
logger11.debug("Updating package.json files...");
|
|
7128
|
+
let viteVersion = packageManager.getDependencyVersion("vite");
|
|
7129
|
+
await packageManager.removeDependencies(["@storybook/nextjs"]), await packageManager.addDependencies({ type: "devDependencies", skipInstall: !0 }, [
|
|
7130
|
+
`@storybook/nextjs-vite@${storybookVersion}`,
|
|
7131
|
+
...viteVersion ? [] : [`vite@${VITE_DEFAULT_VERSION}`]
|
|
7132
|
+
// Add vite if it's not installed yet
|
|
7133
|
+
]);
|
|
7134
|
+
}
|
|
7135
|
+
mainConfigPath && (logger11.debug("Updating main config file..."), await transformMainConfig(mainConfigPath, dryRun)), logger11.debug("Scanning and updating import statements...");
|
|
7136
|
+
let { globby } = await import("./globby-4CQCVABG.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles2(
|
|
7128
7137
|
allFiles,
|
|
7129
7138
|
{
|
|
7130
7139
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7134,7 +7143,7 @@ var transformMainConfig = async (mainConfigPath, dryRun) => {
|
|
|
7134
7143
|
transformErrors.length > 0 && (logger11.warn(`Encountered ${transformErrors.length} errors during file transformation:`), transformErrors.forEach(({ file, error }) => {
|
|
7135
7144
|
logger11.warn(` - ${file}: ${error.message}`);
|
|
7136
7145
|
})), logger11.step("Migration completed successfully!"), logger11.log(
|
|
7137
|
-
"For more information, see: https://storybook.js.org/docs/
|
|
7146
|
+
"For more information, see: https://storybook.js.org/docs/get-started/frameworks/nextjs-vite"
|
|
7138
7147
|
);
|
|
7139
7148
|
}
|
|
7140
7149
|
};
|
|
@@ -7333,7 +7342,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7333
7342
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
7334
7343
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
7335
7344
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
7336
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7345
|
+
let errors = [], { default: pLimit } = await import("./p-limit-TF3V4NJZ.js"), limit = pLimit(10);
|
|
7337
7346
|
return await Promise.all(
|
|
7338
7347
|
files.map(
|
|
7339
7348
|
(file) => limit(async () => {
|
|
@@ -7400,7 +7409,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7400
7409
|
continue;
|
|
7401
7410
|
logger13.debug(`
|
|
7402
7411
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
7403
|
-
let { globby } = await import("./globby-
|
|
7412
|
+
let { globby } = await import("./globby-4CQCVABG.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
7404
7413
|
await transformSourceFiles(
|
|
7405
7414
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7406
7415
|
rendererPackage,
|
|
@@ -7430,7 +7439,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
7430
7439
|
}
|
|
7431
7440
|
var getDotStorybookReferences = async (searchDir) => {
|
|
7432
7441
|
try {
|
|
7433
|
-
let { globby } = await import("./globby-
|
|
7442
|
+
let { globby } = await import("./globby-4CQCVABG.js"), { readFile: readFile10 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
7434
7443
|
onlyFiles: !0,
|
|
7435
7444
|
gitignore: !0
|
|
7436
7445
|
}), referencedFiles = [];
|
|
@@ -7451,7 +7460,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7451
7460
|
async check({ packageManager, mainConfigPath }) {
|
|
7452
7461
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
7453
7462
|
return null;
|
|
7454
|
-
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-
|
|
7463
|
+
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-4CQCVABG.js"), requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
7455
7464
|
return existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
7456
7465
|
},
|
|
7457
7466
|
prompt() {
|
|
@@ -7689,7 +7698,7 @@ var logAvailableMigrations = () => {
|
|
|
7689
7698
|
});
|
|
7690
7699
|
if (Object.values(outcome?.fixResults ?? {}).some(
|
|
7691
7700
|
(r) => r === "succeeded" /* SUCCEEDED */ || r === "manual_succeeded" /* MANUAL_SUCCEEDED */
|
|
7692
|
-
) && !options.skipInstall && packageManager.installDependencies(), outcome && !options.skipDoctor && await doctor({ configDir, packageManager: options.packageManager }), hasFailures(outcome?.fixResults)) {
|
|
7701
|
+
) && !options.skipInstall && await packageManager.installDependencies(), outcome && !options.skipDoctor && await doctor({ configDir, packageManager: options.packageManager }), hasFailures(outcome?.fixResults)) {
|
|
7693
7702
|
let failedMigrations = Object.entries(outcome?.fixResults ?? {}).filter(([, status]) => status === "failed" /* FAILED */ || status === "check_failed" /* CHECK_FAILED */).map(([id, status]) => {
|
|
7694
7703
|
let statusLabel = status === "check_failed" /* CHECK_FAILED */ ? "check failed" : "failed";
|
|
7695
7704
|
return `${import_picocolors13.default.cyan(id)} (${statusLabel})`;
|
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_ughxvadxvz from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_ughxvadxvz from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_ughxvadxvz from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_ughxvadxvz.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ughxvadxvz.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_ughxvadxvz.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-SUWZWKCU.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.2.0-alpha.
|
|
3
|
+
"version": "10.2.0-alpha.7",
|
|
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.2.0-alpha.
|
|
40
|
+
"@storybook/codemod": "10.2.0-alpha.7",
|
|
41
41
|
"@types/semver": "^7.3.4",
|
|
42
42
|
"commander": "^14.0.1",
|
|
43
|
-
"create-storybook": "10.2.0-alpha.
|
|
43
|
+
"create-storybook": "10.2.0-alpha.7",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.2.0-alpha.
|
|
45
|
+
"storybook": "10.2.0-alpha.7",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_70ukk4nq7t from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|