storybook 10.0.0-beta.2 → 10.0.0-beta.4
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/{builder-manager-KCNW2J74.js → builder-manager-IKHPPPFE.js} +16 -16
- package/dist/_node-chunks/{camelcase-FH5EGUIB.js → camelcase-O2O7JODG.js} +7 -7
- package/dist/_node-chunks/{chunk-NTXIDMDM.js → chunk-3J7DQ6TI.js} +7 -7
- package/dist/_node-chunks/{chunk-XWJNZVOR.js → chunk-4FMOVB65.js} +8 -8
- package/dist/_node-chunks/{chunk-6A2WP6N7.js → chunk-4VGW2SQA.js} +7 -7
- package/dist/_node-chunks/chunk-5OILJTZE.js +1476 -0
- package/dist/_node-chunks/{chunk-6B3CXS7K.js → chunk-6COBULLV.js} +7 -7
- package/dist/_node-chunks/{chunk-HSI4BG2J.js → chunk-7IIAUEWB.js} +8 -8
- package/dist/_node-chunks/{chunk-MX77OTGN.js → chunk-AC3BNULF.js} +582 -736
- package/dist/_node-chunks/{chunk-CIIY3F53.js → chunk-AXFNB3AN.js} +7 -7
- package/dist/_node-chunks/chunk-CHJLO2LV.js +62 -0
- package/dist/_node-chunks/{chunk-JWFNAC5N.js → chunk-DCHFG5TX.js} +7 -7
- package/dist/_node-chunks/{chunk-7DWWXKIE.js → chunk-FWFQ2GU7.js} +6 -6
- package/dist/_node-chunks/{chunk-FXPYWCQE.js → chunk-HAVE6SGK.js} +7 -7
- package/dist/_node-chunks/{chunk-2E5IZBC2.js → chunk-IB5AEYPX.js} +7 -7
- package/dist/_node-chunks/{chunk-2VOEBWNF.js → chunk-JECCFKKM.js} +7 -7
- package/dist/_node-chunks/{chunk-ZF6AXYHM.js → chunk-JP4LEAXM.js} +7 -7
- package/dist/_node-chunks/chunk-JSSBBVU5.js +79 -0
- package/dist/_node-chunks/chunk-MNG223PY.js +18 -0
- package/dist/_node-chunks/{chunk-PTT3CRNJ.js → chunk-MOO2Y4GI.js} +6 -6
- package/dist/_node-chunks/{chunk-KDKM7KMS.js → chunk-N3GFXZDP.js} +7 -7
- package/dist/_node-chunks/{chunk-B7L5A4BQ.js → chunk-NF3GXIEK.js} +9 -9
- package/dist/_node-chunks/{chunk-JZ7ZEAK6.js → chunk-NOSGJ5PL.js} +7 -7
- package/dist/_node-chunks/{chunk-DPF2NDLD.js → chunk-OL2HWCBH.js} +7 -7
- package/dist/_node-chunks/{chunk-RSG3AEWL.js → chunk-SF2IETZ2.js} +29 -81
- package/dist/_node-chunks/{chunk-CGY2ITTD.js → chunk-TBAIXCHN.js} +8 -8
- package/dist/_node-chunks/{chunk-CMFB2H3U.js → chunk-TTQRDWDJ.js} +12 -12
- package/dist/_node-chunks/{chunk-63VGATS4.js → chunk-TYGVOW7L.js} +7 -7
- package/dist/_node-chunks/{chunk-HSS67Y6T.js → chunk-USDZSU5L.js} +7 -7
- package/dist/_node-chunks/chunk-XA4TAMUS.js +4966 -0
- package/dist/_node-chunks/{chunk-NUODGCJN.js → chunk-XT6O5CVI.js} +7 -7
- package/dist/_node-chunks/{chunk-WBRWBEAS.js → chunk-YJHXEN7U.js} +10 -10
- package/dist/_node-chunks/{chunk-NWTLWMJN.js → chunk-YRPXGWKW.js} +143 -15
- package/dist/_node-chunks/{default-browser-id-YRAH7IMC.js → default-browser-id-J4OIAAJ5.js} +7 -7
- package/dist/_node-chunks/{dist-G5THJIW5.js → dist-BMKSKYDI.js} +9 -9
- package/dist/_node-chunks/{globby-FGF2JG5Z.js → globby-DASPUXWI.js} +9 -9
- package/dist/_node-chunks/{lib-OPOVJQIO.js → lib-L6BIH4EV.js} +11 -11
- package/dist/_node-chunks/{mdx-N42X6CFJ-N5MJA4NM.js → mdx-N42X6CFJ-2COTUDSL.js} +8 -8
- package/dist/_node-chunks/{p-limit-JNDYEQZX.js → p-limit-HVR3I7TJ.js} +76 -10
- package/dist/_node-chunks/{plugin-ZL4ZLDWE.js → plugin-2XPSFYWZ.js} +10 -10
- package/dist/_node-chunks/{plugin-6GW4GYGS.js → plugin-FZOHPRK7.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-F6BXWV4R.js → webpack-inject-mocker-runtime-plugin-FGQM2EPC.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-5QNP4V3B.js → webpack-mock-plugin-4HOAIYSX.js} +9 -9
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +8 -8
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +29 -30
- package/dist/common/index.d.ts +3 -1
- package/dist/common/index.js +23 -22
- package/dist/core-server/index.js +38 -39
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +22 -22
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf/index.js +7 -1
- package/dist/csf-tools/index.d.ts +34 -0
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +3 -2
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.js +13 -14
- package/dist/preview/runtime.js +9 -2
- package/dist/preview-api/index.d.ts +67 -68
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -25
- package/dist/test/index.js +2 -1
- package/package.json +3 -7
- package/dist/_node-chunks/chunk-2VH25RMB.js +0 -9845
- package/dist/_node-chunks/chunk-6FPFMFFH.js +0 -266
- package/dist/_node-chunks/chunk-IAAPNJG4.js +0 -62
- package/dist/_node-chunks/chunk-IBC4BVDB.js +0 -87
- package/dist/_node-chunks/chunk-NNJMYLJM.js +0 -18
- package/dist/_node-chunks/chunk-TLM4ECJN.js +0 -2377
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.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
|
resolvePackageDir
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-TBAIXCHN.js";
|
|
15
|
+
import "./chunk-4VGW2SQA.js";
|
|
16
16
|
import {
|
|
17
17
|
require_gen_mapping_umd,
|
|
18
18
|
require_trace_mapping_umd
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6COBULLV.js";
|
|
20
20
|
import {
|
|
21
21
|
__commonJS,
|
|
22
22
|
__name,
|
|
23
23
|
__require
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MOO2Y4GI.js";
|
|
25
25
|
|
|
26
26
|
// ../node_modules/lodash/_freeGlobal.js
|
|
27
27
|
var require_freeGlobal = __commonJS({
|
package/dist/_node-chunks/{webpack-mock-plugin-5QNP4V3B.js → webpack-mock-plugin-4HOAIYSX.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
getIsExternal,
|
|
16
16
|
resolveExternalModule,
|
|
17
17
|
resolveWithExtensions
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-7IIAUEWB.js";
|
|
19
|
+
import "./chunk-4VGW2SQA.js";
|
|
20
20
|
import {
|
|
21
21
|
__name
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MOO2Y4GI.js";
|
|
23
23
|
|
|
24
24
|
// src/core-server/presets/webpack/plugins/webpack-mock-plugin.ts
|
|
25
25
|
import { createRequire } from "node:module";
|
package/dist/babel/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,11 +22,11 @@ import {
|
|
|
22
22
|
recast,
|
|
23
23
|
traverse,
|
|
24
24
|
types
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
29
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-YJHXEN7U.js";
|
|
26
|
+
import "../_node-chunks/chunk-6COBULLV.js";
|
|
27
|
+
import "../_node-chunks/chunk-AXFNB3AN.js";
|
|
28
|
+
import "../_node-chunks/chunk-N3GFXZDP.js";
|
|
29
|
+
import "../_node-chunks/chunk-MOO2Y4GI.js";
|
|
30
30
|
var export_transformSync = import_core.transformSync;
|
|
31
31
|
export {
|
|
32
32
|
BabelFileClass,
|
package/dist/bin/core.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.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
|
version
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-MNG223PY.js";
|
|
15
15
|
import {
|
|
16
16
|
globalSettings
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-4FMOVB65.js";
|
|
18
18
|
import {
|
|
19
19
|
require_dist
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-NOSGJ5PL.js";
|
|
21
21
|
import {
|
|
22
22
|
require_picocolors
|
|
23
|
-
} from "../_node-chunks/chunk-
|
|
23
|
+
} from "../_node-chunks/chunk-N3GFXZDP.js";
|
|
24
24
|
import {
|
|
25
25
|
__commonJS,
|
|
26
26
|
__name,
|
|
27
27
|
__require,
|
|
28
28
|
__toESM
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-MOO2Y4GI.js";
|
|
30
30
|
|
|
31
31
|
// ../node_modules/commander/lib/error.js
|
|
32
32
|
var require_error = __commonJS({
|
package/dist/bin/dispatcher.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
12
12
|
// ------------------------------------------------------------
|
|
13
13
|
import {
|
|
14
14
|
versions_default
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-CHJLO2LV.js";
|
|
16
16
|
import {
|
|
17
17
|
resolvePackageDir
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-TBAIXCHN.js";
|
|
19
19
|
import {
|
|
20
20
|
join
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-4VGW2SQA.js";
|
|
22
22
|
import {
|
|
23
23
|
require_dist
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-NOSGJ5PL.js";
|
|
25
25
|
import {
|
|
26
26
|
__name,
|
|
27
27
|
__toESM
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-MOO2Y4GI.js";
|
|
29
29
|
|
|
30
30
|
// src/bin/dispatcher.ts
|
|
31
31
|
import { spawn } from "node:child_process";
|
package/dist/bin/loader.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.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
|
NODE_TARGET
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-FWFQ2GU7.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-MOO2Y4GI.js";
|
|
18
18
|
|
|
19
19
|
// src/bin/loader.ts
|
|
20
20
|
import { readFile } from "node:fs/promises";
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -891,7 +891,7 @@ declare abstract class JsPackageManager {
|
|
|
891
891
|
type NpmOptions = Parameters<JsPackageManager['addDependencies']>[0];
|
|
892
892
|
|
|
893
893
|
declare const SUPPORTED_ESLINT_EXTENSIONS: string[];
|
|
894
|
-
declare const findEslintFile: (instanceDir: string) =>
|
|
894
|
+
declare const findEslintFile: (instanceDir: string) => string | undefined;
|
|
895
895
|
declare const configureFlatConfig: (code: string) => Promise<string>;
|
|
896
896
|
declare function extractEslintInfo(packageManager: JsPackageManager$1): Promise<{
|
|
897
897
|
hasEslint: boolean;
|
package/dist/cli/index.js
CHANGED
|
@@ -1,57 +1,56 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.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
|
boxen
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-JP4LEAXM.js";
|
|
15
15
|
import {
|
|
16
16
|
Settings,
|
|
17
17
|
_clearGlobalSettings,
|
|
18
18
|
globalSettings
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-4FMOVB65.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "../_node-chunks/chunk-
|
|
24
|
-
import "../_node-chunks/chunk-IBC4BVDB.js";
|
|
21
|
+
any,
|
|
22
|
+
up2 as up
|
|
23
|
+
} from "../_node-chunks/chunk-JSSBBVU5.js";
|
|
25
24
|
import {
|
|
26
25
|
invariant
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-USDZSU5L.js";
|
|
28
27
|
import {
|
|
29
28
|
resolvePackageDir
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-TBAIXCHN.js";
|
|
30
|
+
import "../_node-chunks/chunk-4VGW2SQA.js";
|
|
32
31
|
import {
|
|
33
32
|
require_prompts
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-3J7DQ6TI.js";
|
|
35
34
|
import {
|
|
36
35
|
require_dist
|
|
37
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-NOSGJ5PL.js";
|
|
38
37
|
import {
|
|
39
38
|
babelParse,
|
|
40
39
|
recast,
|
|
41
40
|
traverse,
|
|
42
41
|
types
|
|
43
|
-
} from "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-YJHXEN7U.js";
|
|
43
|
+
import "../_node-chunks/chunk-6COBULLV.js";
|
|
44
|
+
import "../_node-chunks/chunk-AXFNB3AN.js";
|
|
46
45
|
import {
|
|
47
46
|
require_picocolors
|
|
48
|
-
} from "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-N3GFXZDP.js";
|
|
49
48
|
import {
|
|
50
49
|
__commonJS,
|
|
51
50
|
__name,
|
|
52
51
|
__require,
|
|
53
52
|
__toESM
|
|
54
|
-
} from "../_node-chunks/chunk-
|
|
53
|
+
} from "../_node-chunks/chunk-MOO2Y4GI.js";
|
|
55
54
|
|
|
56
55
|
// ../node_modules/wrappy/wrappy.js
|
|
57
56
|
var require_wrappy = __commonJS({
|
|
@@ -28010,7 +28009,7 @@ async function adjustTemplate(templatePath, templateData) {
|
|
|
28010
28009
|
}
|
|
28011
28010
|
__name(adjustTemplate, "adjustTemplate");
|
|
28012
28011
|
async function isNxProject() {
|
|
28013
|
-
return
|
|
28012
|
+
return up("nx.json", { last: getProjectRoot() });
|
|
28014
28013
|
}
|
|
28015
28014
|
__name(isNxProject, "isNxProject");
|
|
28016
28015
|
function coerceSemver(version) {
|
|
@@ -28084,8 +28083,8 @@ function detectFrameworkPreset(packageJson = {}) {
|
|
|
28084
28083
|
}
|
|
28085
28084
|
__name(detectFrameworkPreset, "detectFrameworkPreset");
|
|
28086
28085
|
async function detectBuilder(packageManager, projectType) {
|
|
28087
|
-
const viteConfig =
|
|
28088
|
-
const webpackConfig =
|
|
28086
|
+
const viteConfig = any(viteConfigFiles, { last: getProjectRoot2() });
|
|
28087
|
+
const webpackConfig = any(webpackConfigFiles, { last: getProjectRoot2() });
|
|
28089
28088
|
const dependencies = packageManager.getAllDependencies();
|
|
28090
28089
|
if (viteConfig || dependencies.vite && dependencies.webpack === void 0) {
|
|
28091
28090
|
commandLog("Detected Vite project. Setting builder to Vite")();
|
|
@@ -28133,7 +28132,7 @@ function isStorybookInstantiated(configDir = resolve2(process.cwd(), ".storybook
|
|
|
28133
28132
|
}
|
|
28134
28133
|
__name(isStorybookInstantiated, "isStorybookInstantiated");
|
|
28135
28134
|
async function detectPnp() {
|
|
28136
|
-
return !!
|
|
28135
|
+
return !!any([".pnp.js", ".pnp.cjs"]);
|
|
28137
28136
|
}
|
|
28138
28137
|
__name(detectPnp, "detectPnp");
|
|
28139
28138
|
async function detectLanguage(packageManager) {
|
|
@@ -28431,11 +28430,11 @@ var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
|
28431
28430
|
var import_ts_dedent2 = __toESM(require_dist(), 1);
|
|
28432
28431
|
var SUPPORTED_ESLINT_EXTENSIONS = ["ts", "mts", "cts", "mjs", "js", "cjs", "json"];
|
|
28433
28432
|
var UNSUPPORTED_ESLINT_EXTENSIONS = ["yaml", "yml"];
|
|
28434
|
-
var findEslintFile = /* @__PURE__ */ __name(
|
|
28433
|
+
var findEslintFile = /* @__PURE__ */ __name((instanceDir) => {
|
|
28435
28434
|
const filePrefixes = ["eslint.config", ".eslintrc"];
|
|
28436
28435
|
for (const prefix of filePrefixes) {
|
|
28437
28436
|
for (const ext of UNSUPPORTED_ESLINT_EXTENSIONS) {
|
|
28438
|
-
const file =
|
|
28437
|
+
const file = up(`${prefix}.${ext}`, { cwd: instanceDir, last: getProjectRoot3() });
|
|
28439
28438
|
if (file) {
|
|
28440
28439
|
throw new Error(`Unsupported ESLint config extension: .${ext}`);
|
|
28441
28440
|
}
|
|
@@ -28443,7 +28442,7 @@ var findEslintFile = /* @__PURE__ */ __name(async (instanceDir) => {
|
|
|
28443
28442
|
}
|
|
28444
28443
|
for (const prefix of filePrefixes) {
|
|
28445
28444
|
for (const ext of SUPPORTED_ESLINT_EXTENSIONS) {
|
|
28446
|
-
const file =
|
|
28445
|
+
const file = up(`${prefix}.${ext}`, { cwd: instanceDir, last: getProjectRoot3() });
|
|
28447
28446
|
if (file) {
|
|
28448
28447
|
return file;
|
|
28449
28448
|
}
|
|
@@ -28525,7 +28524,7 @@ async function extractEslintInfo(packageManager) {
|
|
|
28525
28524
|
const { packageJson } = packageManager.primaryPackageJson;
|
|
28526
28525
|
let eslintConfigFile = void 0;
|
|
28527
28526
|
try {
|
|
28528
|
-
eslintConfigFile =
|
|
28527
|
+
eslintConfigFile = findEslintFile(packageManager.instanceDir);
|
|
28529
28528
|
} catch (err) {
|
|
28530
28529
|
if (err instanceof Error && err.message.includes("Unsupported ESLint")) {
|
|
28531
28530
|
unsupportedExtension = String(err);
|
package/dist/common/index.d.ts
CHANGED
|
@@ -1140,6 +1140,8 @@ declare const normalizeStories: (entries: StoriesEntry[], options: NormalizeOpti
|
|
|
1140
1140
|
|
|
1141
1141
|
declare const getProjectRoot: () => string;
|
|
1142
1142
|
declare const invalidateProjectRootCache: () => void;
|
|
1143
|
+
/** Finds files in the directory tree up to the project root */
|
|
1144
|
+
declare const findFilesUp: (matchers: string[], baseDir?: string) => string[];
|
|
1143
1145
|
declare const nodePathsToArray: (nodePath: string) => string[];
|
|
1144
1146
|
/** Ensures that a path starts with `./` or `../`, or is entirely `.` or `..` */
|
|
1145
1147
|
declare function normalizeStoryPath(filename: string): string;
|
|
@@ -1301,4 +1303,4 @@ declare const safeResolveModule: ({ specifier, parent, extensions, }: {
|
|
|
1301
1303
|
extensions?: string[];
|
|
1302
1304
|
}) => string | undefined;
|
|
1303
1305
|
|
|
1304
|
-
export { COMMON_ENV_VARS, DEFAULT_FILES_PATTERN, type FileOptions, FileSystemCache, HandledError, type InstallationMetadata, JsPackageManager, JsPackageManagerFactory, type PackageJsonInfo, type PackageJsonWithDepsAndDevDeps, type PackageJsonWithMaybeDeps, type PackageManagerName, type PackageMetadata, type RemoveAddonOptions, builderPackages, cache, checkAddonOrder, codeLog, commandLog, commonGlobOptions, createFileSystemCache, createLogStream, extractProperFrameworkName, extractProperRendererNameFromFramework, filterPresetsConfig, findConfigFile, formatFileContent, frameworkPackages, frameworkToRenderer, getAddonNames, getAutoRefs, getBuilderOptions, getChars, getCoercedStorybookVersion, getConfigInfo, getDirectoryFromWorkingDir, getEnvConfig, getFrameworkName, getInterpretedFile, getPackageDetails, getPresets, getPreviewBodyTemplate, getPreviewHeadTemplate, getProjectRoot, getRefs, getRendererName, getStoryId, getStoryTitle, getStorybookConfiguration, getStorybookInfo, getSyncedStorybookAddons, globToRegexp, importMetaResolve, importModule, interpolate, invalidateProjectRootCache, isCI, isCorePackage, isPreservingSymlinks, isSatelliteAddon, loadAllPresets, loadEnvs, loadMainConfig, loadManagerOrAddonsFile, loadPreset, loadPreviewOrConfigFile, logConfig, nodePathsToArray, normalizeStories, normalizeStoriesEntry, normalizeStoryPath, optionalEnvToBoolean, paddedLog, parseList, posix, readTemplate, removeAddon, rendererPackages, resolveAddonName, resolvePackageDir, resolvePathInStorybookCache, safeResolveModule, satisfies, scanAndTransformFiles, serverRequire, stringifyEnvs, stringifyProcessEnvs, supportedExtensions, syncStorybookAddons, temporaryDirectory, temporaryFile, transformImportFiles, validateConfigurationFiles, validateFrameworkName, _default as versions };
|
|
1306
|
+
export { COMMON_ENV_VARS, DEFAULT_FILES_PATTERN, type FileOptions, FileSystemCache, HandledError, type InstallationMetadata, JsPackageManager, JsPackageManagerFactory, type PackageJsonInfo, type PackageJsonWithDepsAndDevDeps, type PackageJsonWithMaybeDeps, type PackageManagerName, type PackageMetadata, type RemoveAddonOptions, builderPackages, cache, checkAddonOrder, codeLog, commandLog, commonGlobOptions, createFileSystemCache, createLogStream, extractProperFrameworkName, extractProperRendererNameFromFramework, filterPresetsConfig, findConfigFile, findFilesUp, formatFileContent, frameworkPackages, frameworkToRenderer, getAddonNames, getAutoRefs, getBuilderOptions, getChars, getCoercedStorybookVersion, getConfigInfo, getDirectoryFromWorkingDir, getEnvConfig, getFrameworkName, getInterpretedFile, getPackageDetails, getPresets, getPreviewBodyTemplate, getPreviewHeadTemplate, getProjectRoot, getRefs, getRendererName, getStoryId, getStoryTitle, getStorybookConfiguration, getStorybookInfo, getSyncedStorybookAddons, globToRegexp, importMetaResolve, importModule, interpolate, invalidateProjectRootCache, isCI, isCorePackage, isPreservingSymlinks, isSatelliteAddon, loadAllPresets, loadEnvs, loadMainConfig, loadManagerOrAddonsFile, loadPreset, loadPreviewOrConfigFile, logConfig, nodePathsToArray, normalizeStories, normalizeStoriesEntry, normalizeStoryPath, optionalEnvToBoolean, paddedLog, parseList, posix, readTemplate, removeAddon, rendererPackages, resolveAddonName, resolvePackageDir, resolvePathInStorybookCache, safeResolveModule, satisfies, scanAndTransformFiles, serverRequire, stringifyEnvs, stringifyProcessEnvs, supportedExtensions, syncStorybookAddons, temporaryDirectory, temporaryFile, transformImportFiles, validateConfigurationFiles, validateFrameworkName, _default as versions };
|
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -83,13 +83,14 @@ import {
|
|
|
83
83
|
transformImportFiles,
|
|
84
84
|
validateConfigurationFiles,
|
|
85
85
|
validateFrameworkName
|
|
86
|
-
} from "../_node-chunks/chunk-
|
|
87
|
-
import "../_node-chunks/chunk-
|
|
88
|
-
import "../_node-chunks/chunk-
|
|
86
|
+
} from "../_node-chunks/chunk-AC3BNULF.js";
|
|
87
|
+
import "../_node-chunks/chunk-JECCFKKM.js";
|
|
88
|
+
import "../_node-chunks/chunk-5OILJTZE.js";
|
|
89
89
|
import {
|
|
90
90
|
versions_default
|
|
91
|
-
} from "../_node-chunks/chunk-
|
|
91
|
+
} from "../_node-chunks/chunk-CHJLO2LV.js";
|
|
92
92
|
import {
|
|
93
|
+
findFilesUp,
|
|
93
94
|
getProjectRoot,
|
|
94
95
|
invalidateProjectRootCache,
|
|
95
96
|
isCI,
|
|
@@ -99,23 +100,22 @@ import {
|
|
|
99
100
|
optionalEnvToBoolean,
|
|
100
101
|
stringifyEnvs,
|
|
101
102
|
stringifyProcessEnvs
|
|
102
|
-
} from "../_node-chunks/chunk-
|
|
103
|
-
import "../_node-chunks/chunk-
|
|
104
|
-
import "../_node-chunks/chunk-
|
|
105
|
-
import "../_node-chunks/chunk-HSS67Y6T.js";
|
|
103
|
+
} from "../_node-chunks/chunk-XA4TAMUS.js";
|
|
104
|
+
import "../_node-chunks/chunk-JSSBBVU5.js";
|
|
105
|
+
import "../_node-chunks/chunk-USDZSU5L.js";
|
|
106
106
|
import {
|
|
107
107
|
importMetaResolve,
|
|
108
108
|
importModule,
|
|
109
109
|
resolvePackageDir,
|
|
110
110
|
safeResolveModule
|
|
111
|
-
} from "../_node-chunks/chunk-
|
|
112
|
-
import "../_node-chunks/chunk-
|
|
113
|
-
import "../_node-chunks/chunk-
|
|
114
|
-
import "../_node-chunks/chunk-
|
|
115
|
-
import "../_node-chunks/chunk-
|
|
116
|
-
import "../_node-chunks/chunk-
|
|
117
|
-
import "../_node-chunks/chunk-
|
|
118
|
-
import "../_node-chunks/chunk-
|
|
111
|
+
} from "../_node-chunks/chunk-TBAIXCHN.js";
|
|
112
|
+
import "../_node-chunks/chunk-4VGW2SQA.js";
|
|
113
|
+
import "../_node-chunks/chunk-3J7DQ6TI.js";
|
|
114
|
+
import "../_node-chunks/chunk-TYGVOW7L.js";
|
|
115
|
+
import "../_node-chunks/chunk-OL2HWCBH.js";
|
|
116
|
+
import "../_node-chunks/chunk-NOSGJ5PL.js";
|
|
117
|
+
import "../_node-chunks/chunk-N3GFXZDP.js";
|
|
118
|
+
import "../_node-chunks/chunk-MOO2Y4GI.js";
|
|
119
119
|
export {
|
|
120
120
|
COMMON_ENV_VARS,
|
|
121
121
|
DEFAULT_FILES_PATTERN,
|
|
@@ -135,6 +135,7 @@ export {
|
|
|
135
135
|
extractProperRendererNameFromFramework,
|
|
136
136
|
filterPresetsConfig,
|
|
137
137
|
findConfigFile,
|
|
138
|
+
findFilesUp,
|
|
138
139
|
formatFileContent,
|
|
139
140
|
frameworkPackages,
|
|
140
141
|
frameworkToRenderer,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.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
|
require_pretty_hrtime
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-HAVE6SGK.js";
|
|
15
15
|
import {
|
|
16
16
|
boxen,
|
|
17
17
|
require_string_width
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-JP4LEAXM.js";
|
|
19
19
|
import {
|
|
20
20
|
StatusTypeIdMismatchError,
|
|
21
21
|
StorybookError
|
|
22
|
-
} from "../_node-chunks/chunk-
|
|
22
|
+
} from "../_node-chunks/chunk-NF3GXIEK.js";
|
|
23
23
|
import {
|
|
24
24
|
getErrorLevel,
|
|
25
25
|
mapStaticDir,
|
|
@@ -27,60 +27,59 @@ import {
|
|
|
27
27
|
sendTelemetryError,
|
|
28
28
|
useStatics,
|
|
29
29
|
withTelemetry
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
30
|
+
} from "../_node-chunks/chunk-TTQRDWDJ.js";
|
|
31
|
+
import "../_node-chunks/chunk-DCHFG5TX.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-SF2IETZ2.js";
|
|
35
|
+
import "../_node-chunks/chunk-MNG223PY.js";
|
|
36
36
|
import {
|
|
37
37
|
userOrAutoTitleFromSpecifier
|
|
38
|
-
} from "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-AC3BNULF.js";
|
|
39
|
+
import "../_node-chunks/chunk-JECCFKKM.js";
|
|
40
|
+
import "../_node-chunks/chunk-5OILJTZE.js";
|
|
41
|
+
import "../_node-chunks/chunk-CHJLO2LV.js";
|
|
42
|
+
import "../_node-chunks/chunk-4FMOVB65.js";
|
|
43
43
|
import {
|
|
44
44
|
optionalEnvToBoolean
|
|
45
|
-
} from "../_node-chunks/chunk-
|
|
45
|
+
} from "../_node-chunks/chunk-XA4TAMUS.js";
|
|
46
46
|
import {
|
|
47
|
-
|
|
48
|
-
} from "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-IBC4BVDB.js";
|
|
47
|
+
up2 as up
|
|
48
|
+
} from "../_node-chunks/chunk-JSSBBVU5.js";
|
|
50
49
|
import {
|
|
51
50
|
invariant
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
51
|
+
} from "../_node-chunks/chunk-USDZSU5L.js";
|
|
53
52
|
import {
|
|
54
53
|
importModule,
|
|
55
54
|
resolvePackageDir
|
|
56
|
-
} from "../_node-chunks/chunk-
|
|
55
|
+
} from "../_node-chunks/chunk-TBAIXCHN.js";
|
|
57
56
|
import {
|
|
58
57
|
resolve
|
|
59
|
-
} from "../_node-chunks/chunk-
|
|
58
|
+
} from "../_node-chunks/chunk-4VGW2SQA.js";
|
|
60
59
|
import {
|
|
61
60
|
require_prompts
|
|
62
|
-
} from "../_node-chunks/chunk-
|
|
63
|
-
import "../_node-chunks/chunk-
|
|
61
|
+
} from "../_node-chunks/chunk-3J7DQ6TI.js";
|
|
62
|
+
import "../_node-chunks/chunk-TYGVOW7L.js";
|
|
64
63
|
import {
|
|
65
64
|
slash
|
|
66
|
-
} from "../_node-chunks/chunk-
|
|
65
|
+
} from "../_node-chunks/chunk-OL2HWCBH.js";
|
|
67
66
|
import {
|
|
68
67
|
require_dist
|
|
69
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-NOSGJ5PL.js";
|
|
70
69
|
import {
|
|
71
70
|
require_lib,
|
|
72
71
|
require_src
|
|
73
|
-
} from "../_node-chunks/chunk-
|
|
72
|
+
} from "../_node-chunks/chunk-AXFNB3AN.js";
|
|
74
73
|
import {
|
|
75
74
|
require_picocolors
|
|
76
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-N3GFXZDP.js";
|
|
77
76
|
import {
|
|
78
77
|
__commonJS,
|
|
79
78
|
__export,
|
|
80
79
|
__name,
|
|
81
80
|
__require,
|
|
82
81
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
82
|
+
} from "../_node-chunks/chunk-MOO2Y4GI.js";
|
|
84
83
|
|
|
85
84
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
85
|
var require_filesystem = __commonJS({
|
|
@@ -6439,7 +6438,7 @@ var require_detect_windows = __commonJS({
|
|
|
6439
6438
|
// ../node_modules/@aw-web-design/x-default-browser/src/detect-mac.js
|
|
6440
6439
|
var require_detect_mac = __commonJS({
|
|
6441
6440
|
"../node_modules/@aw-web-design/x-default-browser/src/detect-mac.js"(exports, module) {
|
|
6442
|
-
var defaultBrowserId = import("../_node-chunks/default-browser-id-
|
|
6441
|
+
var defaultBrowserId = import("../_node-chunks/default-browser-id-J4OIAAJ5.js");
|
|
6443
6442
|
module.exports = async function(callback) {
|
|
6444
6443
|
const id = await defaultBrowserId.then((res) => res.default());
|
|
6445
6444
|
if (id) {
|
|
@@ -9221,7 +9220,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
9221
9220
|
}
|
|
9222
9221
|
const pathToSubIndex = {};
|
|
9223
9222
|
const fullGlob = slash(join(specifier.directory, specifier.files));
|
|
9224
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
9223
|
+
const { globby } = await import("../_node-chunks/globby-DASPUXWI.js");
|
|
9225
9224
|
const files = await globby(fullGlob, {
|
|
9226
9225
|
absolute: true,
|
|
9227
9226
|
cwd: workingDir,
|
|
@@ -9396,9 +9395,9 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
9396
9395
|
const indexer = this.options.indexers.find((ind) => ind.test.exec(absolutePath));
|
|
9397
9396
|
invariant(indexer, `No matching indexer found for ${absolutePath}`);
|
|
9398
9397
|
const indexInputs = await indexer.createIndex(absolutePath, { makeTitle: defaultMakeTitle });
|
|
9399
|
-
const tsconfigPath =
|
|
9398
|
+
const tsconfigPath = up("tsconfig.json", {
|
|
9400
9399
|
cwd: this.options.workingDir,
|
|
9401
|
-
|
|
9400
|
+
last: getProjectRoot()
|
|
9402
9401
|
});
|
|
9403
9402
|
const tsconfig = TsconfigPaths.loadConfig(tsconfigPath);
|
|
9404
9403
|
let matchPath;
|
|
@@ -9460,7 +9459,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
9460
9459
|
const normalizedPath = normalizeStoryPath(relativePath);
|
|
9461
9460
|
const importPath = slash(normalizedPath);
|
|
9462
9461
|
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
9463
|
-
const { analyze } = await import("../_node-chunks/dist-
|
|
9462
|
+
const { analyze } = await import("../_node-chunks/dist-BMKSKYDI.js");
|
|
9464
9463
|
const result = await analyze(content);
|
|
9465
9464
|
if (result.isTemplate) {
|
|
9466
9465
|
return false;
|
|
@@ -9803,7 +9802,7 @@ __name(print, "print");
|
|
|
9803
9802
|
// src/core-server/utils/get-builders.ts
|
|
9804
9803
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
9805
9804
|
async function getManagerBuilder() {
|
|
9806
|
-
return await import("../_node-chunks/builder-manager-
|
|
9805
|
+
return await import("../_node-chunks/builder-manager-IKHPPPFE.js");
|
|
9807
9806
|
}
|
|
9808
9807
|
__name(getManagerBuilder, "getManagerBuilder");
|
|
9809
9808
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
@@ -16750,7 +16749,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
16750
16749
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
16751
16750
|
basename2(specifier.files)
|
|
16752
16751
|
);
|
|
16753
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
16752
|
+
const { globby } = await import("../_node-chunks/globby-DASPUXWI.js");
|
|
16754
16753
|
const addedFiles = await globby(slash(dirGlob), commonGlobOptions2(dirGlob));
|
|
16755
16754
|
addedFiles.forEach((filePath) => {
|
|
16756
16755
|
const fileImportPath = toImportPath(filePath);
|