@storybook/cli 10.4.0-alpha.4 → 10.4.0-alpha.6
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-DCDVXEGB.js → block-dependencies-versions-4SW3RNVN.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-T7Q6GLSQ.js → block-experimental-addon-test-TDPASIS2.js} +9 -9
- package/dist/_node-chunks/{block-major-version-PO2KJRHR.js → block-major-version-J7ESXIQG.js} +9 -9
- package/dist/_node-chunks/{block-node-version-PYKWHNG5.js → block-node-version-BIZPQOM2.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-N5777VW2.js → block-webpack5-frameworks-5ZBMYNTI.js} +11 -11
- package/dist/_node-chunks/{chunk-LFC7BIUT.js → chunk-6UAUIVYK.js} +7 -7
- package/dist/_node-chunks/chunk-CFJUBP6A.js +11 -0
- package/dist/_node-chunks/{chunk-3U4EDLTJ.js → chunk-IC6SBKCK.js} +7 -7
- package/dist/_node-chunks/{chunk-XAJ73R7J.js → chunk-NJN6GSDE.js} +15 -15
- package/dist/_node-chunks/{chunk-2G3HZM3J.js → chunk-YUTHJZPM.js} +6 -6
- package/dist/_node-chunks/{globby-MD577DN6.js → globby-PV3WLQER.js} +8 -8
- package/dist/_node-chunks/{p-limit-PVWEITZM.js → p-limit-SGBWKVRU.js} +7 -7
- package/dist/_node-chunks/{run-B466W4ZG.js → run-DZQPWIEN.js} +116 -87
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-MJK7VJPS.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
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-NJN6GSDE.js";
|
|
15
|
+
import "./chunk-IC6SBKCK.js";
|
|
16
|
+
import "./chunk-CFJUBP6A.js";
|
|
17
|
+
import "./chunk-6UAUIVYK.js";
|
|
18
|
+
import "./chunk-YUTHJZPM.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-CFJUBP6A.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6UAUIVYK.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YUTHJZPM.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-PO2KJRHR.js → block-major-version-J7ESXIQG.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-CFJUBP6A.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6UAUIVYK.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YUTHJZPM.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-CFJUBP6A.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6UAUIVYK.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YUTHJZPM.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
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-NJN6GSDE.js";
|
|
15
|
+
import "./chunk-IC6SBKCK.js";
|
|
16
|
+
import "./chunk-CFJUBP6A.js";
|
|
17
|
+
import "./chunk-6UAUIVYK.js";
|
|
18
|
+
import "./chunk-YUTHJZPM.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-webpack5-frameworks.ts
|
|
21
21
|
var minimalVersionsMap = {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
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-YUTHJZPM.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
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-YUTHJZPM.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
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_tjk9gql3mm.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IC6SBKCK.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6UAUIVYK.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YUTHJZPM.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-4SW3RNVN.js"),
|
|
126
|
+
import("./block-node-version-BIZPQOM2.js"),
|
|
127
|
+
import("./block-webpack5-frameworks-5ZBMYNTI.js"),
|
|
128
|
+
import("./block-major-version-J7ESXIQG.js"),
|
|
129
|
+
import("./block-experimental-addon-test-TDPASIS2.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-SGBWKVRU.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
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-IC6SBKCK.js";
|
|
25
|
+
import "./chunk-YUTHJZPM.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-YUTHJZPM.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
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-NJN6GSDE.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IC6SBKCK.js";
|
|
32
32
|
import {
|
|
33
33
|
require_semver
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6UAUIVYK.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YUTHJZPM.js";
|
|
40
40
|
|
|
41
41
|
// ../../../node_modules/envinfo/dist/envinfo.js
|
|
42
42
|
var require_envinfo = __commonJS({
|
|
@@ -4758,10 +4758,10 @@ function leven(first, second, options) {
|
|
|
4758
4758
|
}
|
|
4759
4759
|
|
|
4760
4760
|
// src/bin/run.ts
|
|
4761
|
-
var
|
|
4761
|
+
var import_picocolors17 = __toESM(require_picocolors(), 1);
|
|
4762
4762
|
|
|
4763
4763
|
// package.json
|
|
4764
|
-
var version = "10.4.0-alpha.
|
|
4764
|
+
var version = "10.4.0-alpha.6";
|
|
4765
4765
|
|
|
4766
4766
|
// src/add.ts
|
|
4767
4767
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -5078,7 +5078,7 @@ function isValidVersion(version2) {
|
|
|
5078
5078
|
}
|
|
5079
5079
|
|
|
5080
5080
|
// src/automigrate/index.ts
|
|
5081
|
-
var
|
|
5081
|
+
var import_picocolors14 = __toESM(require_picocolors(), 1);
|
|
5082
5082
|
import { versions as versions3 } from "storybook/internal/common";
|
|
5083
5083
|
import { logTracker as logTracker2, logger as logger16, prompt as prompt3 } from "storybook/internal/node-logger";
|
|
5084
5084
|
import { AutomigrateError } from "storybook/internal/server-errors";
|
|
@@ -5095,7 +5095,7 @@ function invariant(condition, message) {
|
|
|
5095
5095
|
}
|
|
5096
5096
|
|
|
5097
5097
|
// src/automigrate/index.ts
|
|
5098
|
-
import { dedent as
|
|
5098
|
+
import { dedent as dedent14 } from "ts-dedent";
|
|
5099
5099
|
|
|
5100
5100
|
// src/doctor/index.ts
|
|
5101
5101
|
var import_picocolors4 = __toESM(require_picocolors(), 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-PV3WLQER.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-SGBWKVRU.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5640
5640
|
await Promise.all(
|
|
5641
5641
|
files.map(
|
|
5642
5642
|
(file) => limit(async () => {
|
|
@@ -6479,7 +6479,7 @@ var addonA11yParameters = {
|
|
|
6479
6479
|
errors.push({ file: previewFileToUpdate, error });
|
|
6480
6480
|
}
|
|
6481
6481
|
}
|
|
6482
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6482
|
+
let { default: pLimit } = await import("./p-limit-SGBWKVRU.js"), limit = pLimit(10);
|
|
6483
6483
|
if (await Promise.all(
|
|
6484
6484
|
storyFilesToUpdate.map(
|
|
6485
6485
|
(file) => limit(async () => {
|
|
@@ -6633,7 +6633,7 @@ var addonGlobalsApi = {
|
|
|
6633
6633
|
}
|
|
6634
6634
|
};
|
|
6635
6635
|
async function transformStoryFiles(files, options, dryRun) {
|
|
6636
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6636
|
+
let errors = [], { default: pLimit } = await import("./p-limit-SGBWKVRU.js"), limit = pLimit(10);
|
|
6637
6637
|
return await Promise.all(
|
|
6638
6638
|
files.map(
|
|
6639
6639
|
(file) => limit(async () => {
|
|
@@ -6825,7 +6825,7 @@ function transformPackageJson(content) {
|
|
|
6825
6825
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
6826
6826
|
}
|
|
6827
6827
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
6828
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6828
|
+
let errors = [], { default: pLimit } = await import("./p-limit-SGBWKVRU.js"), limit = pLimit(10);
|
|
6829
6829
|
return await Promise.all(
|
|
6830
6830
|
files.map(
|
|
6831
6831
|
(file) => limit(async () => {
|
|
@@ -6864,7 +6864,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
6864
6864
|
dryRun
|
|
6865
6865
|
);
|
|
6866
6866
|
errors.push(...packageJsonErrors);
|
|
6867
|
-
let { globby } = await import("./globby-
|
|
6867
|
+
let { globby } = await import("./globby-PV3WLQER.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles(
|
|
6868
6868
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
6869
6869
|
{
|
|
6870
6870
|
...consolidatedPackages,
|
|
@@ -7163,7 +7163,10 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig = async (mainConfigPath
|
|
|
7163
7163
|
let content = await readFile6(mainConfigPath, "utf-8");
|
|
7164
7164
|
if (!content.includes("@storybook/nextjs"))
|
|
7165
7165
|
return !1;
|
|
7166
|
-
let transformedContent = content.replace(
|
|
7166
|
+
let transformedContent = content.replace(
|
|
7167
|
+
/@storybook\/nextjs(?!-vite)/g,
|
|
7168
|
+
"@storybook/nextjs-vite"
|
|
7169
|
+
);
|
|
7167
7170
|
return transformedContent !== content && !dryRun && await writeFile5(mainConfigPath, transformedContent), transformedContent !== content;
|
|
7168
7171
|
} catch (error) {
|
|
7169
7172
|
return logger11.error(`Failed to update main config at ${mainConfigPath}: ${error}`), !1;
|
|
@@ -7217,7 +7220,7 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig = async (mainConfigPath
|
|
|
7217
7220
|
]);
|
|
7218
7221
|
}
|
|
7219
7222
|
mainConfigPath && (logger11.debug("Updating main config file..."), await transformMainConfig(mainConfigPath, dryRun)), logger11.debug("Scanning and updating import statements...");
|
|
7220
|
-
let { globby } = await import("./globby-
|
|
7223
|
+
let { globby } = await import("./globby-PV3WLQER.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles2(
|
|
7221
7224
|
allFiles,
|
|
7222
7225
|
{
|
|
7223
7226
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7427,7 +7430,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7427
7430
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
7428
7431
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
7429
7432
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
7430
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7433
|
+
let errors = [], { default: pLimit } = await import("./p-limit-SGBWKVRU.js"), limit = pLimit(10);
|
|
7431
7434
|
return await Promise.all(
|
|
7432
7435
|
files.map(
|
|
7433
7436
|
(file) => limit(async () => {
|
|
@@ -7494,7 +7497,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7494
7497
|
continue;
|
|
7495
7498
|
logger13.debug(`
|
|
7496
7499
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
7497
|
-
let { globby } = await import("./globby-
|
|
7500
|
+
let { globby } = await import("./globby-PV3WLQER.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
7498
7501
|
await transformSourceFiles(
|
|
7499
7502
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7500
7503
|
rendererPackage,
|
|
@@ -7524,7 +7527,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
7524
7527
|
}
|
|
7525
7528
|
var getDotStorybookReferences = async (searchDir) => {
|
|
7526
7529
|
try {
|
|
7527
|
-
let { globby } = await import("./globby-
|
|
7530
|
+
let { globby } = await import("./globby-PV3WLQER.js"), { readFile: readFile10 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
7528
7531
|
onlyFiles: !0,
|
|
7529
7532
|
gitignore: !0
|
|
7530
7533
|
}), referencedFiles = [];
|
|
@@ -7545,7 +7548,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7545
7548
|
async check({ packageManager, mainConfigPath }) {
|
|
7546
7549
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
7547
7550
|
return null;
|
|
7548
|
-
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-
|
|
7551
|
+
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-PV3WLQER.js"), requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
7549
7552
|
return existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
7550
7553
|
},
|
|
7551
7554
|
prompt() {
|
|
@@ -7561,13 +7564,38 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7561
7564
|
}
|
|
7562
7565
|
};
|
|
7563
7566
|
|
|
7567
|
+
// src/automigrate/fixes/storybook-package-name-conflict.ts
|
|
7568
|
+
var import_picocolors12 = __toESM(require_picocolors(), 1);
|
|
7569
|
+
import { dedent as dedent10 } from "ts-dedent";
|
|
7570
|
+
var storybookPackageNameConflict = {
|
|
7571
|
+
id: "storybookPackageNameConflict",
|
|
7572
|
+
promptType: "notification",
|
|
7573
|
+
link: "https://github.com/storybookjs/storybook/issues/28725",
|
|
7574
|
+
async check({ packageManager }) {
|
|
7575
|
+
let packageName = packageManager.primaryPackageJson.packageJson.name;
|
|
7576
|
+
return packageName === "storybook" ? { packageName } : null;
|
|
7577
|
+
},
|
|
7578
|
+
prompt() {
|
|
7579
|
+
return dedent10`
|
|
7580
|
+
Your package.json ${import_picocolors12.default.cyan('"name"')} field is set to ${import_picocolors12.default.cyan('"storybook"')}.
|
|
7581
|
+
|
|
7582
|
+
In npm, pnpm, or yarn workspaces this creates a symlink at
|
|
7583
|
+
${import_picocolors12.default.yellow("node_modules/storybook")} that shadows the real Storybook
|
|
7584
|
+
package, causing ${import_picocolors12.default.red('"Cannot find module storybook/internal/..."')} errors.
|
|
7585
|
+
|
|
7586
|
+
To fix this, rename the ${import_picocolors12.default.cyan('"name"')} field in your package.json
|
|
7587
|
+
to something other than ${import_picocolors12.default.cyan('"storybook"')} (e.g. "my-storybook", "docs", "@myorg/storybook").
|
|
7588
|
+
`;
|
|
7589
|
+
}
|
|
7590
|
+
};
|
|
7591
|
+
|
|
7564
7592
|
// src/automigrate/fixes/upgrade-storybook-related-dependencies.ts
|
|
7565
7593
|
var import_semver5 = __toESM(require_semver(), 1);
|
|
7566
7594
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
7567
7595
|
import { dirname as dirname2 } from "node:path";
|
|
7568
7596
|
import { isCorePackage, isSatelliteAddon } from "storybook/internal/common";
|
|
7569
7597
|
import { logger as logger14 } from "storybook/internal/node-logger";
|
|
7570
|
-
import { dedent as
|
|
7598
|
+
import { dedent as dedent11 } from "ts-dedent";
|
|
7571
7599
|
async function getLatestVersions(packageManager, packages) {
|
|
7572
7600
|
return Promise.all(
|
|
7573
7601
|
packages.map(async ([packageName]) => ({
|
|
@@ -7606,7 +7634,7 @@ var upgradeStorybookRelatedDependencies = {
|
|
|
7606
7634
|
},
|
|
7607
7635
|
async run({ result: { upgradable }, packageManager, dryRun }) {
|
|
7608
7636
|
if (dryRun) {
|
|
7609
|
-
logger14.log(
|
|
7637
|
+
logger14.log(dedent11`
|
|
7610
7638
|
The following would have been upgraded:
|
|
7611
7639
|
${upgradable.map(
|
|
7612
7640
|
({ packageName, afterVersion, beforeVersion }) => `${packageName}: ${beforeVersion} => ${afterVersion}`
|
|
@@ -7638,7 +7666,7 @@ import {
|
|
|
7638
7666
|
} from "storybook/internal/common";
|
|
7639
7667
|
import { readConfig as readConfig3 } from "storybook/internal/csf-tools";
|
|
7640
7668
|
import { CommonJsConfigNotSupportedError } from "storybook/internal/server-errors";
|
|
7641
|
-
import { dedent as
|
|
7669
|
+
import { dedent as dedent12 } from "ts-dedent";
|
|
7642
7670
|
var wrapGetAbsolutePath = {
|
|
7643
7671
|
id: "wrap-getAbsolutePath",
|
|
7644
7672
|
link: "https://storybook.js.org/docs/faq#how-do-i-fix-module-resolution-in-special-environments",
|
|
@@ -7655,7 +7683,7 @@ var wrapGetAbsolutePath = {
|
|
|
7655
7683
|
return { storybookVersion, isStorybookInMonorepo, isPnp, isConfigTypescript };
|
|
7656
7684
|
},
|
|
7657
7685
|
prompt() {
|
|
7658
|
-
return
|
|
7686
|
+
return dedent12`We have detected that you're using Storybook in a monorepo or PnP project. Some fields in your main config must be updated.`;
|
|
7659
7687
|
},
|
|
7660
7688
|
async run({ dryRun, mainConfigPath, result }) {
|
|
7661
7689
|
await updateMainConfig({ dryRun: !!dryRun, mainConfigPath }, (mainConfig) => {
|
|
@@ -7692,14 +7720,15 @@ var allFixes = [
|
|
|
7692
7720
|
addonA11yParameters,
|
|
7693
7721
|
removeDocsAutodocs,
|
|
7694
7722
|
wrapGetAbsolutePath,
|
|
7695
|
-
fixFauxEsmRequire
|
|
7723
|
+
fixFauxEsmRequire,
|
|
7724
|
+
storybookPackageNameConflict
|
|
7696
7725
|
];
|
|
7697
7726
|
var commandFixes = [csfFactories];
|
|
7698
7727
|
|
|
7699
7728
|
// src/automigrate/helpers/logMigrationSummary.ts
|
|
7700
|
-
var
|
|
7729
|
+
var import_picocolors13 = __toESM(require_picocolors(), 1);
|
|
7701
7730
|
import { CLI_COLORS as CLI_COLORS2, logger as logger15 } from "storybook/internal/node-logger";
|
|
7702
|
-
import { dedent as
|
|
7731
|
+
import { dedent as dedent13 } from "ts-dedent";
|
|
7703
7732
|
var messageDivider2 = `
|
|
7704
7733
|
|
|
7705
7734
|
`, segmentDivider = `
|
|
@@ -7709,23 +7738,23 @@ var messageDivider2 = `
|
|
|
7709
7738
|
`;
|
|
7710
7739
|
function getGlossaryMessages(fixSummary, fixResults) {
|
|
7711
7740
|
let messages2 = [];
|
|
7712
|
-
return fixSummary.succeeded.length > 0 && (messages2.push(
|
|
7713
|
-
Object.entries(fixSummary.failed).map(([id, error]) => `${
|
|
7741
|
+
return fixSummary.succeeded.length > 0 && (messages2.push(import_picocolors13.default.bold("Successful migrations:")), messages2.push(fixSummary.succeeded.map((m) => import_picocolors13.default.green(m)).join(", "))), Object.keys(fixSummary.failed).length > 0 && (messages2.push(import_picocolors13.default.bold("Failed migrations:")), messages2.push(
|
|
7742
|
+
Object.entries(fixSummary.failed).map(([id, error]) => `${import_picocolors13.default.bold(import_picocolors13.default.red(id))}:
|
|
7714
7743
|
${error}`).join(`
|
|
7715
7744
|
`)
|
|
7716
|
-
)), fixSummary.manual.length > 0 && (messages2.push(
|
|
7745
|
+
)), fixSummary.manual.length > 0 && (messages2.push(import_picocolors13.default.bold("Manual migrations:")), messages2.push(
|
|
7717
7746
|
fixSummary.manual.map(
|
|
7718
|
-
(m) => fixResults[m] === "manual_succeeded" /* MANUAL_SUCCEEDED */ ?
|
|
7747
|
+
(m) => fixResults[m] === "manual_succeeded" /* MANUAL_SUCCEEDED */ ? import_picocolors13.default.green(m) : import_picocolors13.default.blue(m)
|
|
7719
7748
|
).join(", ")
|
|
7720
|
-
)), fixSummary.skipped.length > 0 && (messages2.push(
|
|
7749
|
+
)), fixSummary.skipped.length > 0 && (messages2.push(import_picocolors13.default.bold("Skipped migrations:")), messages2.push(fixSummary.skipped.map((m) => import_picocolors13.default.cyan(m)).join(", "))), messages2;
|
|
7721
7750
|
}
|
|
7722
7751
|
function logMigrationSummary({
|
|
7723
7752
|
fixResults,
|
|
7724
7753
|
fixSummary
|
|
7725
7754
|
}) {
|
|
7726
7755
|
let messages2 = [];
|
|
7727
|
-
messages2.push(getGlossaryMessages(fixSummary, fixResults).join(messageDivider2)), messages2.push(
|
|
7728
|
-
${
|
|
7756
|
+
messages2.push(getGlossaryMessages(fixSummary, fixResults).join(messageDivider2)), messages2.push(dedent13`If you'd like to run the migrations again, you can do so by running
|
|
7757
|
+
${import_picocolors13.default.cyan("npx storybook automigrate")}
|
|
7729
7758
|
|
|
7730
7759
|
The automigrations try to migrate common patterns in your project, but might not contain everything needed to migrate to the latest version of Storybook.
|
|
7731
7760
|
|
|
@@ -7741,9 +7770,9 @@ function logMigrationSummary({
|
|
|
7741
7770
|
|
|
7742
7771
|
// src/automigrate/index.ts
|
|
7743
7772
|
var logAvailableMigrations = () => {
|
|
7744
|
-
let availableFixes = [...allFixes, ...commandFixes].map((f) =>
|
|
7773
|
+
let availableFixes = [...allFixes, ...commandFixes].map((f) => import_picocolors14.default.yellow(f.id)).map((x) => `- ${x}`).join(`
|
|
7745
7774
|
`);
|
|
7746
|
-
logger16.log(
|
|
7775
|
+
logger16.log(dedent14`
|
|
7747
7776
|
The following migrations are available:
|
|
7748
7777
|
${availableFixes}
|
|
7749
7778
|
`);
|
|
@@ -7784,7 +7813,7 @@ var logAvailableMigrations = () => {
|
|
|
7784
7813
|
) && !options.skipInstall && await packageManager.installDependencies(), outcome && !options.skipDoctor && await doctor({ configDir, packageManager: options.packageManager }), hasFailures(outcome?.fixResults)) {
|
|
7785
7814
|
let failedMigrations = Object.entries(outcome?.fixResults ?? {}).filter(([, status]) => status === "failed" /* FAILED */ || status === "check_failed" /* CHECK_FAILED */).map(([id, status]) => {
|
|
7786
7815
|
let statusLabel = status === "check_failed" /* CHECK_FAILED */ ? "check failed" : "failed";
|
|
7787
|
-
return `${
|
|
7816
|
+
return `${import_picocolors14.default.cyan(id)} (${statusLabel})`;
|
|
7788
7817
|
});
|
|
7789
7818
|
throw new AutomigrateError({ errors: failedMigrations });
|
|
7790
7819
|
}
|
|
@@ -7813,7 +7842,7 @@ var logAvailableMigrations = () => {
|
|
|
7813
7842
|
return logAvailableMigrations(), null;
|
|
7814
7843
|
let commandFix = commandFixes.find((f) => f.id === fixId);
|
|
7815
7844
|
if (commandFix)
|
|
7816
|
-
return logger16.step(`Running migration ${
|
|
7845
|
+
return logger16.step(`Running migration ${import_picocolors14.default.magenta(fixId)}..`), await commandFix.run({
|
|
7817
7846
|
mainConfigPath,
|
|
7818
7847
|
previewConfigPath,
|
|
7819
7848
|
packageManager,
|
|
@@ -7828,7 +7857,7 @@ var logAvailableMigrations = () => {
|
|
|
7828
7857
|
}), null;
|
|
7829
7858
|
let selectedFixes = inputFixes || allFixes.filter((fix) => !(fix.id === upgradeStorybookRelatedDependencies.id && isLatest === !1 && fixId !== upgradeStorybookRelatedDependencies.id)), fixes = fixId ? selectedFixes.filter((f) => f.id === fixId) : selectedFixes;
|
|
7830
7859
|
if (fixId && fixes.length === 0)
|
|
7831
|
-
return logger16.log(`\u{1F4ED} No migrations found for ${
|
|
7860
|
+
return logger16.log(`\u{1F4ED} No migrations found for ${import_picocolors14.default.magenta(fixId)}.`), logAvailableMigrations(), null;
|
|
7832
7861
|
logger16.step("Checking possible migrations..");
|
|
7833
7862
|
let { fixResults, fixSummary, preCheckFailure } = await runFixes({
|
|
7834
7863
|
fixes,
|
|
@@ -7870,7 +7899,7 @@ async function runFixes({
|
|
|
7870
7899
|
for (let i = 0; i < fixes.length; i += 1) {
|
|
7871
7900
|
let f = fixes[i], result;
|
|
7872
7901
|
try {
|
|
7873
|
-
logger16.debug(`Running ${
|
|
7902
|
+
logger16.debug(`Running ${import_picocolors14.default.cyan(f.id)} migration checks`), result = await f.check({
|
|
7874
7903
|
packageManager,
|
|
7875
7904
|
configDir,
|
|
7876
7905
|
rendererPackage,
|
|
@@ -7880,14 +7909,14 @@ async function runFixes({
|
|
|
7880
7909
|
mainConfigPath,
|
|
7881
7910
|
storiesPaths,
|
|
7882
7911
|
hasCsfFactoryPreview
|
|
7883
|
-
}), logger16.debug(`End of ${
|
|
7912
|
+
}), logger16.debug(`End of ${import_picocolors14.default.cyan(f.id)} migration checks`);
|
|
7884
7913
|
} catch (error) {
|
|
7885
|
-
logger16.warn(`\u26A0\uFE0F failed to check fix ${
|
|
7914
|
+
logger16.warn(`\u26A0\uFE0F failed to check fix ${import_picocolors14.default.bold(f.id)}`), error instanceof Error && (logger16.error(`
|
|
7886
7915
|
${error.stack}`), fixSummary.failed[f.id] = error.message), fixResults[f.id] = "check_failed" /* CHECK_FAILED */;
|
|
7887
7916
|
}
|
|
7888
7917
|
if (result) {
|
|
7889
7918
|
let promptType = typeof f.promptType == "function" ? await f.promptType(result) : f.promptType ?? "auto";
|
|
7890
|
-
logger16.log(`\u{1F50E} found a '${
|
|
7919
|
+
logger16.log(`\u{1F50E} found a '${import_picocolors14.default.cyan(f.id)}' migration:`);
|
|
7891
7920
|
let getTitle = () => {
|
|
7892
7921
|
switch (promptType) {
|
|
7893
7922
|
case "auto":
|
|
@@ -7899,7 +7928,7 @@ ${error.stack}`), fixSummary.failed[f.id] = error.message), fixResults[f.id] = "
|
|
|
7899
7928
|
}
|
|
7900
7929
|
}, currentTaskLogger = prompt3.taskLog({
|
|
7901
7930
|
id: `automigrate-task-${f.id}`,
|
|
7902
|
-
title: `${getTitle()}: ${
|
|
7931
|
+
title: `${getTitle()}: ${import_picocolors14.default.cyan(f.id)}`
|
|
7903
7932
|
});
|
|
7904
7933
|
logger16.logBox(f.prompt());
|
|
7905
7934
|
let runAnswer;
|
|
@@ -7927,7 +7956,7 @@ ${error.stack}`), fixSummary.failed[f.id] = error.message), fixResults[f.id] = "
|
|
|
7927
7956
|
}
|
|
7928
7957
|
} else promptType === "auto" ? runAnswer = { fix: yes ? !0 : await prompt3.confirm(
|
|
7929
7958
|
{
|
|
7930
|
-
message: `Do you want to run the '${
|
|
7959
|
+
message: `Do you want to run the '${import_picocolors14.default.cyan(f.id)}' migration on your project?`,
|
|
7931
7960
|
initialValue: f.defaultSelected ?? !0
|
|
7932
7961
|
},
|
|
7933
7962
|
{
|
|
@@ -7963,14 +7992,14 @@ ${error.stack}`), fixSummary.failed[f.id] = error.message), fixResults[f.id] = "
|
|
|
7963
7992
|
storybookVersion,
|
|
7964
7993
|
storiesPaths,
|
|
7965
7994
|
yes
|
|
7966
|
-
}), logger16.log(`\u2705 ran ${
|
|
7995
|
+
}), logger16.log(`\u2705 ran ${import_picocolors14.default.cyan(f.id)} migration`), fixResults[f.id] = "succeeded" /* SUCCEEDED */, fixSummary.succeeded.push(f.id), currentTaskLogger.success(`Ran ${import_picocolors14.default.cyan(f.id)} migration`);
|
|
7967
7996
|
} catch (error) {
|
|
7968
7997
|
fixResults[f.id] = "failed" /* FAILED */;
|
|
7969
7998
|
let errorMessage = error instanceof Error ? error.message : "Failed to run migration";
|
|
7970
|
-
fixSummary.failed[f.id] = errorMessage, currentTaskLogger.error(`Error when running ${
|
|
7999
|
+
fixSummary.failed[f.id] = errorMessage, currentTaskLogger.error(`Error when running ${import_picocolors14.default.cyan(f.id)} migration`);
|
|
7971
8000
|
}
|
|
7972
8001
|
else
|
|
7973
|
-
fixResults[f.id] = "skipped" /* SKIPPED */, fixSummary.skipped.push(f.id), currentTaskLogger.success(`Skipped ${
|
|
8002
|
+
fixResults[f.id] = "skipped" /* SKIPPED */, fixSummary.skipped.push(f.id), currentTaskLogger.success(`Skipped ${import_picocolors14.default.cyan(f.id)} migration`);
|
|
7974
8003
|
} else
|
|
7975
8004
|
fixResults[f.id] = fixResults[f.id] || "unnecessary" /* UNNECESSARY */;
|
|
7976
8005
|
}
|
|
@@ -8059,8 +8088,8 @@ import {
|
|
|
8059
8088
|
versions as versions4
|
|
8060
8089
|
} from "storybook/internal/common";
|
|
8061
8090
|
import { logger as logger19, prompt as prompt4 } from "storybook/internal/node-logger";
|
|
8062
|
-
var
|
|
8063
|
-
import { dedent as
|
|
8091
|
+
var import_picocolors15 = __toESM(require_picocolors(), 1), import_semver6 = __toESM(require_semver(), 1);
|
|
8092
|
+
import { dedent as dedent15 } from "ts-dedent";
|
|
8064
8093
|
|
|
8065
8094
|
// src/sandbox-templates.ts
|
|
8066
8095
|
var baseTemplates = {
|
|
@@ -8970,18 +8999,18 @@ var toChoices = (c) => ({ label: allTemplates[c].name, value: c }), sandbox = as
|
|
|
8970
8999
|
let selectedConfig = allTemplates[filterValue], templateId = selectedConfig ? filterValue : null, packageManager = JsPackageManagerFactory.getPackageManager({
|
|
8971
9000
|
force: PackageManagerName.NPM
|
|
8972
9001
|
}), 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 = {
|
|
8973
|
-
welcome: `Creating a Storybook ${
|
|
8974
|
-
notLatest:
|
|
8975
|
-
This version is behind the latest release, which is: ${
|
|
9002
|
+
welcome: `Creating a Storybook ${import_picocolors15.default.bold(currentVersion)} sandbox..`,
|
|
9003
|
+
notLatest: import_picocolors15.default.red(dedent15`
|
|
9004
|
+
This version is behind the latest release, which is: ${import_picocolors15.default.bold(latestVersion)}!
|
|
8976
9005
|
You likely ran the init command through npx, which can use a locally cached version, to get the latest please run:
|
|
8977
|
-
${
|
|
9006
|
+
${import_picocolors15.default.bold("npx storybook@latest sandbox")}
|
|
8978
9007
|
|
|
8979
9008
|
You may want to CTRL+C to stop, and run with the latest version instead.
|
|
8980
9009
|
`),
|
|
8981
|
-
longInitTime:
|
|
9010
|
+
longInitTime: import_picocolors15.default.yellow(
|
|
8982
9011
|
"The creation of the sandbox will take longer, because we will need to run init."
|
|
8983
9012
|
),
|
|
8984
|
-
prerelease:
|
|
9013
|
+
prerelease: import_picocolors15.default.yellow("This is a pre-release version.")
|
|
8985
9014
|
};
|
|
8986
9015
|
if (logger19.logBox(
|
|
8987
9016
|
[messages2.welcome].concat(isOutdated && !isPrerelease ? [messages2.notLatest] : []).concat(init && (isOutdated || isPrerelease) ? [messages2.longInitTime] : []).concat(isPrerelease ? [messages2.prerelease] : []).join(`
|
|
@@ -8995,23 +9024,23 @@ var toChoices = (c) => ({ label: allTemplates[c].name, value: c }), sandbox = as
|
|
|
8995
9024
|
return (!filterValue || current.name.match(filterRegex) || group.match(filterRegex) || current.expected.builder.match(filterRegex) || current.expected.framework.match(filterRegex) || current.expected.renderer.match(filterRegex)) && acc.push(group), acc;
|
|
8996
9025
|
}, []);
|
|
8997
9026
|
if (choices.length === 0 && (logger19.logBox(
|
|
8998
|
-
|
|
9027
|
+
dedent15`
|
|
8999
9028
|
🔎 You filtered out all templates. 🔍
|
|
9000
9029
|
|
|
9001
|
-
After filtering all the templates with "${
|
|
9030
|
+
After filtering all the templates with "${import_picocolors15.default.yellow(
|
|
9002
9031
|
filterValue
|
|
9003
9032
|
)}", we found no results. Please try again with a different filter.
|
|
9004
9033
|
|
|
9005
9034
|
Available templates:
|
|
9006
|
-
${keys.map((key) =>
|
|
9035
|
+
${keys.map((key) => import_picocolors15.default.blue(`- ${key}`)).join(`
|
|
9007
9036
|
`)}
|
|
9008
9037
|
`.trim(),
|
|
9009
9038
|
{ borderStyle: "round", padding: 1, borderColor: "#F1618C" }
|
|
9010
9039
|
), process.exit(1)), choices.length === 1 ? [templateId] = choices : (logger19.logBox(
|
|
9011
|
-
|
|
9012
|
-
🤗 Welcome to ${
|
|
9040
|
+
dedent15`
|
|
9041
|
+
🤗 Welcome to ${import_picocolors15.default.yellow("sb sandbox")}! 🤗
|
|
9013
9042
|
|
|
9014
|
-
Create a ${
|
|
9043
|
+
Create a ${import_picocolors15.default.green("new project")} to minimally reproduce Storybook issues.
|
|
9015
9044
|
|
|
9016
9045
|
1. select an environment that most closely matches your project setup.
|
|
9017
9046
|
2. select a location for the reproduction, outside of your project.
|
|
@@ -9041,15 +9070,15 @@ var toChoices = (c) => ({ label: allTemplates[c].name, value: c }), sandbox = as
|
|
|
9041
9070
|
)), invariant(selectedDirectory);
|
|
9042
9071
|
try {
|
|
9043
9072
|
let templateDestination = isAbsolute2(selectedDirectory) ? selectedDirectory : join(process.cwd(), selectedDirectory);
|
|
9044
|
-
logger19.log(`\u{1F3C3} Adding ${selectedConfig.name} into ${templateDestination}`), logger19.log(`\u{1F4E6} Downloading sandbox template (${
|
|
9073
|
+
logger19.log(`\u{1F3C3} Adding ${selectedConfig.name} into ${templateDestination}`), logger19.log(`\u{1F4E6} Downloading sandbox template (${import_picocolors15.default.bold(downloadType)})...`);
|
|
9045
9074
|
try {
|
|
9046
9075
|
let gitPath = `storybookjs/sandboxes/tree/${branch}/${templateId}/${downloadType}`;
|
|
9047
9076
|
if (await mkdir2(templateDestination, { recursive: !0 }), (0, import_cross_spawn2.sync)("npx", ["gitpick@4.12.4", gitPath, templateDestination, "-o"], {
|
|
9048
9077
|
stdio: "inherit"
|
|
9049
9078
|
}), (await readdir(templateDestination)).length === 0) {
|
|
9050
|
-
let selected =
|
|
9051
|
-
throw new Error(
|
|
9052
|
-
Template downloaded from ${
|
|
9079
|
+
let selected = import_picocolors15.default.yellow(templateId);
|
|
9080
|
+
throw new Error(dedent15`
|
|
9081
|
+
Template downloaded from ${import_picocolors15.default.blue(gitPath)} is empty.
|
|
9053
9082
|
Are you use it exists? Or did you want to set ${selected} to inDevelopment first?
|
|
9054
9083
|
`);
|
|
9055
9084
|
}
|
|
@@ -9067,20 +9096,20 @@ var toChoices = (c) => ({ label: allTemplates[c].name, value: c }), sandbox = as
|
|
|
9067
9096
|
} catch (err) {
|
|
9068
9097
|
throw logger19.error(`\u{1F6A8} Failed to download sandbox template: ${String(err)}`), err;
|
|
9069
9098
|
}
|
|
9070
|
-
let initMessage = init ?
|
|
9099
|
+
let initMessage = init ? import_picocolors15.default.yellow(dedent15`
|
|
9071
9100
|
yarn install
|
|
9072
9101
|
yarn storybook
|
|
9073
|
-
`) : `Recreate your setup, then ${
|
|
9102
|
+
`) : `Recreate your setup, then ${import_picocolors15.default.yellow("npx storybook@latest init")}`;
|
|
9074
9103
|
logger19.logBox(
|
|
9075
|
-
|
|
9104
|
+
dedent15`
|
|
9076
9105
|
🎉 Your Storybook reproduction project is ready to use! 🎉
|
|
9077
9106
|
|
|
9078
|
-
${
|
|
9107
|
+
${import_picocolors15.default.yellow(`cd ${selectedDirectory}`)}
|
|
9079
9108
|
${initMessage}
|
|
9080
9109
|
|
|
9081
9110
|
Once you've recreated the problem you're experiencing, please:
|
|
9082
9111
|
|
|
9083
|
-
1. Document any additional steps in ${
|
|
9112
|
+
1. Document any additional steps in ${import_picocolors15.default.cyan("README.md")}
|
|
9084
9113
|
2. Publish the repository to github
|
|
9085
9114
|
3. Link to the repro repository in your issue
|
|
9086
9115
|
|
|
@@ -9100,7 +9129,7 @@ async function promptSelectedTemplate(choices) {
|
|
|
9100
9129
|
}
|
|
9101
9130
|
|
|
9102
9131
|
// src/upgrade.ts
|
|
9103
|
-
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1),
|
|
9132
|
+
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1), import_picocolors16 = __toESM(require_picocolors(), 1), import_semver7 = __toESM(require_semver(), 1);
|
|
9104
9133
|
import { PackageManagerName as PackageManagerName2 } from "storybook/internal/common";
|
|
9105
9134
|
import { HandledError, JsPackageManagerFactory as JsPackageManagerFactory2, isCorePackage as isCorePackage2 } from "storybook/internal/common";
|
|
9106
9135
|
import {
|
|
@@ -9115,7 +9144,7 @@ import {
|
|
|
9115
9144
|
UpgradeStorybookUnknownCurrentVersionError
|
|
9116
9145
|
} from "storybook/internal/server-errors";
|
|
9117
9146
|
import { telemetry } from "storybook/internal/telemetry";
|
|
9118
|
-
import { dedent as
|
|
9147
|
+
import { dedent as dedent16 } from "ts-dedent";
|
|
9119
9148
|
|
|
9120
9149
|
// src/automigrate/multi-project.ts
|
|
9121
9150
|
import { CLI_COLORS as CLI_COLORS3, logger as logger20, prompt as prompt5 } from "storybook/internal/node-logger";
|
|
@@ -9426,7 +9455,7 @@ ${projectList}`);
|
|
|
9426
9455
|
}
|
|
9427
9456
|
} else
|
|
9428
9457
|
Object.values(doctorResults).every((result) => result.status === "healthy") ? logger21.step(`${CLI_COLORS4.success("Your project(s) have been upgraded successfully! \u{1F389}")}`) : logger21.step(
|
|
9429
|
-
`${
|
|
9458
|
+
`${import_picocolors16.default.yellow("Your project(s) have been upgraded successfully, but some issues were found which need your attention, please check Storybook doctor logs above.")}`
|
|
9430
9459
|
);
|
|
9431
9460
|
let automigrationLinks = detectedAutomigrations.filter(
|
|
9432
9461
|
(am) => Object.entries(projectResults).some(
|
|
@@ -9482,9 +9511,9 @@ async function upgrade(options) {
|
|
|
9482
9511
|
return;
|
|
9483
9512
|
let { allProjects, selectedProjects: storybookProjects } = projectsResult;
|
|
9484
9513
|
storybookProjects.length > 1 ? logger21.info(`Upgrading the following projects:
|
|
9485
|
-
${storybookProjects.map((p) => `${
|
|
9514
|
+
${storybookProjects.map((p) => `${import_picocolors16.default.cyan(shortenPath(p.configDir))}: ${import_picocolors16.default.bold(p.beforeVersion)} -> ${import_picocolors16.default.bold(p.currentCLIVersion)}`).join(`
|
|
9486
9515
|
`)}`) : logger21.info(
|
|
9487
|
-
`Upgrading from ${
|
|
9516
|
+
`Upgrading from ${import_picocolors16.default.bold(storybookProjects[0].beforeVersion)} to ${import_picocolors16.default.bold(storybookProjects[0].currentCLIVersion)}`
|
|
9488
9517
|
);
|
|
9489
9518
|
let automigrationResults = {}, doctorResults = {}, handleInterruption = async () => {
|
|
9490
9519
|
throw logger21.log(`
|
|
@@ -9500,7 +9529,7 @@ Upgrade interrupted by user.`), allProjects.length > 1 && await sendMultiUpgrade
|
|
|
9500
9529
|
process.on("SIGINT", handleInterruption), process.on("SIGTERM", handleInterruption);
|
|
9501
9530
|
try {
|
|
9502
9531
|
if (processAutoblockerResults(storybookProjects, (message) => {
|
|
9503
|
-
logger21.error(
|
|
9532
|
+
logger21.error(dedent16`Blockers detected\n\n${message}`);
|
|
9504
9533
|
}))
|
|
9505
9534
|
throw new HandledError("Blockers detected");
|
|
9506
9535
|
if (storybookProjects.some((project) => {
|
|
@@ -9680,7 +9709,7 @@ command("upgrade").description(`Upgrade your Storybook packages to v${versions5.
|
|
|
9680
9709
|
).catch(handleCommandFailure(options.logfile));
|
|
9681
9710
|
});
|
|
9682
9711
|
command("info").description("Prints debugging information about the local environment").action(async () => {
|
|
9683
|
-
logger22.log(
|
|
9712
|
+
logger22.log(import_picocolors17.default.bold(`
|
|
9684
9713
|
Storybook Environment Info:`));
|
|
9685
9714
|
let activePackageManager = JsPackageManagerFactory3.getPackageManager().type.replace(/\d/, ""), output = await import_envinfo.default.run({
|
|
9686
9715
|
System: ["OS", "CPU", "Shell"],
|
|
@@ -9692,7 +9721,7 @@ Storybook Environment Info:`));
|
|
|
9692
9721
|
logger22.log(
|
|
9693
9722
|
output.replace(
|
|
9694
9723
|
activePackageManagerLine,
|
|
9695
|
-
|
|
9724
|
+
import_picocolors17.default.bold(`${activePackageManagerLine} <----- active`)
|
|
9696
9725
|
)
|
|
9697
9726
|
);
|
|
9698
9727
|
});
|
|
@@ -9737,9 +9766,9 @@ command("doctor").description("Check Storybook for known problems and provide su
|
|
|
9737
9766
|
}).catch(handleCommandFailure(options.logfile));
|
|
9738
9767
|
});
|
|
9739
9768
|
program.on("command:*", ([invalidCmd]) => {
|
|
9740
|
-
let errorMessage = ` Invalid command: ${
|
|
9769
|
+
let errorMessage = ` Invalid command: ${import_picocolors17.default.bold(invalidCmd)}.
|
|
9741
9770
|
See --help for a list of available commands.`, suggestion = program.commands.map((cmd) => cmd.name()).find((cmd) => leven(cmd, invalidCmd) < 3);
|
|
9742
9771
|
suggestion && (errorMessage += `
|
|
9743
|
-
Did you mean ${
|
|
9772
|
+
Did you mean ${import_picocolors17.default.yellow(suggestion)}?`), logger22.error(errorMessage), process.exit(1);
|
|
9744
9773
|
});
|
|
9745
9774
|
program.usage("<command> [options]").version(String(version)).parse(process.argv);
|
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_adcalpw4sjt from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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-DZQPWIEN.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.6",
|
|
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.6",
|
|
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.6",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.4.0-alpha.
|
|
45
|
+
"storybook": "10.4.0-alpha.6",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_tjk9gql3mm from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_tjk9gql3mm from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_tjk9gql3mm from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_tjk9gql3mm.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_tjk9gql3mm.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_tjk9gql3mm.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|