@storybook/cli 10.2.0-alpha.3 → 10.2.0-alpha.5
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-5556ZQX2.js → block-dependencies-versions-7SVXY5YM.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-7IESZ5ZO.js → block-experimental-addon-test-TTRTO3BB.js} +9 -9
- package/dist/_node-chunks/{block-major-version-NPX7DDJA.js → block-major-version-BRP3KYIV.js} +9 -9
- package/dist/_node-chunks/{block-node-version-JPS32URN.js → block-node-version-KW43ETNH.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-K6EW6T4Y.js → block-webpack5-frameworks-53RFMG7O.js} +11 -11
- package/dist/_node-chunks/{chunk-NSUJX2DW.js → chunk-2GPOXHLV.js} +7 -7
- package/dist/_node-chunks/{chunk-BPTHFFUL.js → chunk-O7BI2NMC.js} +28 -19
- package/dist/_node-chunks/{chunk-AS65525L.js → chunk-Q76IVFMZ.js} +7 -7
- package/dist/_node-chunks/chunk-THCSKARM.js +11 -0
- package/dist/_node-chunks/{chunk-WLENDCEM.js → chunk-XWK2TAVF.js} +6 -6
- package/dist/_node-chunks/{globby-2TTFU6QT.js → globby-L4F5U6LY.js} +8 -8
- package/dist/_node-chunks/{p-limit-CFZQYHFR.js → p-limit-6G3D7UGA.js} +7 -7
- package/dist/_node-chunks/{run-C2SFNHCT.js → run-AL4R2ANQ.js} +41 -33
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-XNKX3QIZ.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
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-O7BI2NMC.js";
|
|
15
|
+
import "./chunk-Q76IVFMZ.js";
|
|
16
|
+
import "./chunk-THCSKARM.js";
|
|
17
|
+
import "./chunk-2GPOXHLV.js";
|
|
18
|
+
import "./chunk-XWK2TAVF.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_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-THCSKARM.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2GPOXHLV.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XWK2TAVF.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-NPX7DDJA.js → block-major-version-BRP3KYIV.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-THCSKARM.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2GPOXHLV.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XWK2TAVF.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_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-THCSKARM.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2GPOXHLV.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XWK2TAVF.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_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
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-O7BI2NMC.js";
|
|
15
|
+
import "./chunk-Q76IVFMZ.js";
|
|
16
|
+
import "./chunk-THCSKARM.js";
|
|
17
|
+
import "./chunk-2GPOXHLV.js";
|
|
18
|
+
import "./chunk-XWK2TAVF.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_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
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-XWK2TAVF.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
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_ikpmlp0kfnb.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q76IVFMZ.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2GPOXHLV.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XWK2TAVF.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-7SVXY5YM.js"),
|
|
126
|
+
import("./block-node-version-KW43ETNH.js"),
|
|
127
|
+
import("./block-webpack5-frameworks-53RFMG7O.js"),
|
|
128
|
+
import("./block-major-version-BRP3KYIV.js"),
|
|
129
|
+
import("./block-experimental-addon-test-TTRTO3BB.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;
|
|
@@ -145,7 +145,11 @@ import {
|
|
|
145
145
|
getStorybookInfo
|
|
146
146
|
} from "storybook/internal/common";
|
|
147
147
|
import { frameworkToRenderer } from "storybook/internal/common";
|
|
148
|
-
import {
|
|
148
|
+
import {
|
|
149
|
+
isCsfFactoryPreview,
|
|
150
|
+
readConfig,
|
|
151
|
+
writeConfig as writeConfigFile
|
|
152
|
+
} from "storybook/internal/csf-tools";
|
|
149
153
|
import { logger } from "storybook/internal/node-logger";
|
|
150
154
|
var getFrameworkPackageName = (mainConfig) => {
|
|
151
155
|
let packageNameOrPath = typeof mainConfig?.framework == "string" ? mainConfig.framework : mainConfig?.framework?.name;
|
|
@@ -182,6 +186,8 @@ var getStorybookData = async ({
|
|
|
182
186
|
});
|
|
183
187
|
logger.debug("Getting Storybook version...");
|
|
184
188
|
let versionInstalled = (await packageManager.getModulePackageJSON("storybook"))?.version;
|
|
189
|
+
logger.debug("Detecting CSF factory usage...");
|
|
190
|
+
let hasCsfFactoryPreview = previewConfigPath ? isCsfFactoryPreview(await readConfig(previewConfigPath)) : !1;
|
|
185
191
|
return {
|
|
186
192
|
configDir,
|
|
187
193
|
mainConfig,
|
|
@@ -192,7 +198,8 @@ var getStorybookData = async ({
|
|
|
192
198
|
mainConfigPath,
|
|
193
199
|
previewConfigPath,
|
|
194
200
|
packageManager,
|
|
195
|
-
storiesPaths
|
|
201
|
+
storiesPaths,
|
|
202
|
+
hasCsfFactoryPreview
|
|
196
203
|
};
|
|
197
204
|
}, updateMainConfig = async ({ mainConfigPath, dryRun }, callback) => {
|
|
198
205
|
try {
|
|
@@ -292,7 +299,8 @@ var processProject = async ({
|
|
|
292
299
|
packageManager,
|
|
293
300
|
previewConfigPath,
|
|
294
301
|
storiesPaths,
|
|
295
|
-
versionInstalled
|
|
302
|
+
versionInstalled,
|
|
303
|
+
hasCsfFactoryPreview
|
|
296
304
|
} = await getStorybookData({ configDir });
|
|
297
305
|
logger2.debug(`${name} - Validating before version... ${versionInstalled}`), validateVersion(versionInstalled);
|
|
298
306
|
let isCanary = isCanaryVersion(currentCLIVersion) || isCanaryVersion(versionInstalled);
|
|
@@ -322,7 +330,8 @@ var processProject = async ({
|
|
|
322
330
|
isCLIExactPrerelease,
|
|
323
331
|
autoblockerCheckResults,
|
|
324
332
|
previewConfigPath,
|
|
325
|
-
storiesPaths
|
|
333
|
+
storiesPaths,
|
|
334
|
+
hasCsfFactoryPreview
|
|
326
335
|
};
|
|
327
336
|
} catch (error) {
|
|
328
337
|
return logger2.debug(String(error)), {
|
|
@@ -331,7 +340,7 @@ var processProject = async ({
|
|
|
331
340
|
};
|
|
332
341
|
}
|
|
333
342
|
}, collectProjects = async (options, configDirs, onProjectScanStart) => {
|
|
334
|
-
let { default: pLimit } = await import("./p-limit-
|
|
343
|
+
let { default: pLimit } = await import("./p-limit-6G3D7UGA.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
335
344
|
(configDir) => limit(
|
|
336
345
|
() => processProject({
|
|
337
346
|
configDir,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
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-XWK2TAVF.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/fast-glob/out/utils/array.js
|
|
19
19
|
var require_array = __commonJS({
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
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_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
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-Q76IVFMZ.js";
|
|
25
|
+
import "./chunk-XWK2TAVF.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_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-XWK2TAVF.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_70ukk4nq7t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.createRequire(import.meta.url);
|
|
8
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-O7BI2NMC.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Q76IVFMZ.js";
|
|
32
32
|
import {
|
|
33
33
|
require_semver
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2GPOXHLV.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XWK2TAVF.js";
|
|
40
40
|
|
|
41
41
|
// ../../../node_modules/envinfo/dist/envinfo.js
|
|
42
42
|
var require_envinfo = __commonJS({
|
|
@@ -4761,7 +4761,7 @@ function leven(first, second, options) {
|
|
|
4761
4761
|
var import_picocolors16 = __toESM(require_picocolors(), 1);
|
|
4762
4762
|
|
|
4763
4763
|
// package.json
|
|
4764
|
-
var version = "10.2.0-alpha.
|
|
4764
|
+
var version = "10.2.0-alpha.5";
|
|
4765
4765
|
|
|
4766
4766
|
// src/add.ts
|
|
4767
4767
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -5624,7 +5624,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
5624
5624
|
import { promises as fs } from "fs";
|
|
5625
5625
|
var maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
|
|
5626
5626
|
async function runCodemod(globPattern = "**/*.stories.*", transform, { dryRun = !1, skipFormatting = !1 } = {}) {
|
|
5627
|
-
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-
|
|
5627
|
+
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-L4F5U6LY.js"), files = await globby(slash(globPattern), {
|
|
5628
5628
|
followSymbolicLinks: !0,
|
|
5629
5629
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
5630
5630
|
});
|
|
@@ -5635,7 +5635,7 @@ Please try a different pattern.
|
|
|
5635
5635
|
`
|
|
5636
5636
|
), new Error("No files matched");
|
|
5637
5637
|
try {
|
|
5638
|
-
let pLimit = (await import("./p-limit-
|
|
5638
|
+
let pLimit = (await import("./p-limit-6G3D7UGA.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5639
5639
|
await Promise.all(
|
|
5640
5640
|
files.map(
|
|
5641
5641
|
(file) => limit(async () => {
|
|
@@ -6112,14 +6112,14 @@ var fileExtensions = [
|
|
|
6112
6112
|
id: "addon-a11y-addon-test",
|
|
6113
6113
|
link: "https://storybook.js.org/docs/writing-tests/accessibility-testing#with-the-vitest-addon",
|
|
6114
6114
|
promptType: "auto",
|
|
6115
|
-
async check({ mainConfig, configDir }) {
|
|
6115
|
+
async check({ mainConfig, configDir, hasCsfFactoryPreview }) {
|
|
6116
6116
|
let addons = getAddonNames(mainConfig), frameworkPackageName = getFrameworkPackageName(mainConfig), hasA11yAddon = !!addons.find((addon) => addon.includes("@storybook/addon-a11y")), hasTestAddon = !!addons.find((addon) => addon.includes("@storybook/addon-vitest"));
|
|
6117
6117
|
if (!Object.keys(frameworkPackages3).find((framework) => frameworkPackageName?.includes(framework)) || !hasA11yAddon || !hasTestAddon || !configDir)
|
|
6118
6118
|
return null;
|
|
6119
|
-
let vitestSetupFile = fileExtensions.map((ext) => path3.join(configDir, `vitest.setup${ext}`)).find((filePath) => existsSync(filePath)) ?? null, previewFile = fileExtensions.map((ext) => path3.join(configDir, `preview${ext}`)).find((filePath) => existsSync(filePath)) ?? null, skipVitestSetupTransformation =
|
|
6119
|
+
let vitestSetupFile = fileExtensions.map((ext) => path3.join(configDir, `vitest.setup${ext}`)).find((filePath) => existsSync(filePath)) ?? null, previewFile = fileExtensions.map((ext) => path3.join(configDir, `preview${ext}`)).find((filePath) => existsSync(filePath)) ?? null, skipVitestSetupTransformation = hasCsfFactoryPreview, skipPreviewTransformation = !1;
|
|
6120
6120
|
if (vitestSetupFile && previewFile) {
|
|
6121
6121
|
let vitestSetupSource = readFileSync(vitestSetupFile, "utf8"), previewSetupSource = readFileSync(previewFile, "utf8");
|
|
6122
|
-
if (skipVitestSetupTransformation
|
|
6122
|
+
if (skipVitestSetupTransformation ||= vitestSetupSource.includes("@storybook/addon-a11y"), skipPreviewTransformation ||= !shouldPreviewFileBeTransformed(previewSetupSource), skipVitestSetupTransformation && skipPreviewTransformation)
|
|
6123
6123
|
return null;
|
|
6124
6124
|
}
|
|
6125
6125
|
let getTransformedSetupCode = () => {
|
|
@@ -6395,7 +6395,7 @@ var addonA11yParameters = {
|
|
|
6395
6395
|
errors.push({ file: previewFileToUpdate, error });
|
|
6396
6396
|
}
|
|
6397
6397
|
}
|
|
6398
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6398
|
+
let { default: pLimit } = await import("./p-limit-6G3D7UGA.js"), limit = pLimit(10);
|
|
6399
6399
|
if (await Promise.all(
|
|
6400
6400
|
storyFilesToUpdate.map(
|
|
6401
6401
|
(file) => limit(async () => {
|
|
@@ -6549,7 +6549,7 @@ var addonGlobalsApi = {
|
|
|
6549
6549
|
}
|
|
6550
6550
|
};
|
|
6551
6551
|
async function transformStoryFiles(files, options, dryRun) {
|
|
6552
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6552
|
+
let errors = [], { default: pLimit } = await import("./p-limit-6G3D7UGA.js"), limit = pLimit(10);
|
|
6553
6553
|
return await Promise.all(
|
|
6554
6554
|
files.map(
|
|
6555
6555
|
(file) => limit(async () => {
|
|
@@ -6741,7 +6741,7 @@ function transformPackageJson(content) {
|
|
|
6741
6741
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
6742
6742
|
}
|
|
6743
6743
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
6744
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6744
|
+
let errors = [], { default: pLimit } = await import("./p-limit-6G3D7UGA.js"), limit = pLimit(10);
|
|
6745
6745
|
return await Promise.all(
|
|
6746
6746
|
files.map(
|
|
6747
6747
|
(file) => limit(async () => {
|
|
@@ -6780,7 +6780,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
6780
6780
|
dryRun
|
|
6781
6781
|
);
|
|
6782
6782
|
errors.push(...packageJsonErrors);
|
|
6783
|
-
let { globby } = await import("./globby-
|
|
6783
|
+
let { globby } = await import("./globby-L4F5U6LY.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles(
|
|
6784
6784
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
6785
6785
|
{
|
|
6786
6786
|
...consolidatedPackages,
|
|
@@ -7124,7 +7124,7 @@ var transformMainConfig = async (mainConfigPath, dryRun) => {
|
|
|
7124
7124
|
logger11.step("Migrating from @storybook/nextjs to @storybook/nextjs-vite..."), dryRun ? logger11.debug("Dry run: Skipping package.json updates.") : (logger11.debug("Updating package.json files..."), await packageManager.removeDependencies(["@storybook/nextjs"]), await packageManager.addDependencies({ type: "devDependencies", skipInstall: !0 }, [
|
|
7125
7125
|
`@storybook/nextjs-vite@${storybookVersion}`
|
|
7126
7126
|
])), mainConfigPath && (logger11.debug("Updating main config file..."), await transformMainConfig(mainConfigPath, dryRun)), logger11.debug("Scanning and updating import statements...");
|
|
7127
|
-
let { globby } = await import("./globby-
|
|
7127
|
+
let { globby } = await import("./globby-L4F5U6LY.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles2(
|
|
7128
7128
|
allFiles,
|
|
7129
7129
|
{
|
|
7130
7130
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7333,7 +7333,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7333
7333
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
7334
7334
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
7335
7335
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
7336
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7336
|
+
let errors = [], { default: pLimit } = await import("./p-limit-6G3D7UGA.js"), limit = pLimit(10);
|
|
7337
7337
|
return await Promise.all(
|
|
7338
7338
|
files.map(
|
|
7339
7339
|
(file) => limit(async () => {
|
|
@@ -7400,7 +7400,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7400
7400
|
continue;
|
|
7401
7401
|
logger13.debug(`
|
|
7402
7402
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
7403
|
-
let { globby } = await import("./globby-
|
|
7403
|
+
let { globby } = await import("./globby-L4F5U6LY.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
7404
7404
|
await transformSourceFiles(
|
|
7405
7405
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7406
7406
|
rendererPackage,
|
|
@@ -7430,7 +7430,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
7430
7430
|
}
|
|
7431
7431
|
var getDotStorybookReferences = async (searchDir) => {
|
|
7432
7432
|
try {
|
|
7433
|
-
let { globby } = await import("./globby-
|
|
7433
|
+
let { globby } = await import("./globby-L4F5U6LY.js"), { readFile: readFile10 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
7434
7434
|
onlyFiles: !0,
|
|
7435
7435
|
gitignore: !0
|
|
7436
7436
|
}), referencedFiles = [];
|
|
@@ -7451,7 +7451,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7451
7451
|
async check({ packageManager, mainConfigPath }) {
|
|
7452
7452
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
7453
7453
|
return null;
|
|
7454
|
-
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-
|
|
7454
|
+
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-L4F5U6LY.js"), requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
7455
7455
|
return existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
7456
7456
|
},
|
|
7457
7457
|
prompt() {
|
|
@@ -7664,7 +7664,8 @@ var logAvailableMigrations = () => {
|
|
|
7664
7664
|
versionInstalled,
|
|
7665
7665
|
configDir,
|
|
7666
7666
|
packageManager,
|
|
7667
|
-
storiesPaths
|
|
7667
|
+
storiesPaths,
|
|
7668
|
+
hasCsfFactoryPreview
|
|
7668
7669
|
} = await getStorybookData({
|
|
7669
7670
|
configDir: options.configDir,
|
|
7670
7671
|
packageManagerName: options.packageManager
|
|
@@ -7683,7 +7684,8 @@ var logAvailableMigrations = () => {
|
|
|
7683
7684
|
configDir,
|
|
7684
7685
|
isUpgrade: !1,
|
|
7685
7686
|
isLatest: !1,
|
|
7686
|
-
storiesPaths
|
|
7687
|
+
storiesPaths,
|
|
7688
|
+
hasCsfFactoryPreview
|
|
7687
7689
|
});
|
|
7688
7690
|
if (Object.values(outcome?.fixResults ?? {}).some(
|
|
7689
7691
|
(r) => r === "succeeded" /* SUCCEEDED */ || r === "manual_succeeded" /* MANUAL_SUCCEEDED */
|
|
@@ -7711,7 +7713,8 @@ var logAvailableMigrations = () => {
|
|
|
7711
7713
|
hideMigrationSummary = !1,
|
|
7712
7714
|
isUpgrade,
|
|
7713
7715
|
isLatest,
|
|
7714
|
-
storiesPaths
|
|
7716
|
+
storiesPaths,
|
|
7717
|
+
hasCsfFactoryPreview
|
|
7715
7718
|
}) => {
|
|
7716
7719
|
if (list)
|
|
7717
7720
|
return logAvailableMigrations(), null;
|
|
@@ -7745,7 +7748,8 @@ var logAvailableMigrations = () => {
|
|
|
7745
7748
|
isUpgrade: !!isUpgrade,
|
|
7746
7749
|
dryRun,
|
|
7747
7750
|
yes,
|
|
7748
|
-
storiesPaths
|
|
7751
|
+
storiesPaths,
|
|
7752
|
+
hasCsfFactoryPreview
|
|
7749
7753
|
});
|
|
7750
7754
|
return hasFailures(fixResults) && logTracker2.enableLogWriting(), hideMigrationSummary || logMigrationSummary({
|
|
7751
7755
|
fixResults,
|
|
@@ -7764,7 +7768,8 @@ async function runFixes({
|
|
|
7764
7768
|
mainConfigPath,
|
|
7765
7769
|
previewConfigPath,
|
|
7766
7770
|
storybookVersion,
|
|
7767
|
-
storiesPaths
|
|
7771
|
+
storiesPaths,
|
|
7772
|
+
hasCsfFactoryPreview
|
|
7768
7773
|
}) {
|
|
7769
7774
|
let fixResults = {}, fixSummary = { succeeded: [], failed: {}, manual: [], skipped: [] };
|
|
7770
7775
|
for (let i = 0; i < fixes.length; i += 1) {
|
|
@@ -7778,7 +7783,8 @@ async function runFixes({
|
|
|
7778
7783
|
storybookVersion,
|
|
7779
7784
|
previewConfigPath,
|
|
7780
7785
|
mainConfigPath,
|
|
7781
|
-
storiesPaths
|
|
7786
|
+
storiesPaths,
|
|
7787
|
+
hasCsfFactoryPreview
|
|
7782
7788
|
}), logger16.debug(`End of ${import_picocolors13.default.cyan(f.id)} migration checks`);
|
|
7783
7789
|
} catch (error) {
|
|
7784
7790
|
logger16.warn(`\u26A0\uFE0F failed to check fix ${import_picocolors13.default.bold(f.id)}`), error instanceof Error && (logger16.error(`
|
|
@@ -9030,7 +9036,8 @@ async function collectAutomigrationsAcrossProjects(options) {
|
|
|
9030
9036
|
storybookVersion: project.storybookVersion,
|
|
9031
9037
|
previewConfigPath: project.previewConfigPath,
|
|
9032
9038
|
mainConfigPath: project.mainConfigPath,
|
|
9033
|
-
storiesPaths: project.storiesPaths
|
|
9039
|
+
storiesPaths: project.storiesPaths,
|
|
9040
|
+
hasCsfFactoryPreview: project.hasCsfFactoryPreview
|
|
9034
9041
|
}, result = await fix.check(checkOptions);
|
|
9035
9042
|
result !== null ? collectResult(fix, project, "check_succeeded", result) : collectResult(fix, project, "not_applicable");
|
|
9036
9043
|
} catch (error) {
|
|
@@ -9194,7 +9201,8 @@ async function runAutomigrations(projects, options) {
|
|
|
9194
9201
|
previewConfigPath: project.previewConfigPath,
|
|
9195
9202
|
storybookVersion: project.currentCLIVersion,
|
|
9196
9203
|
beforeVersion: project.beforeVersion,
|
|
9197
|
-
storiesPaths: project.storiesPaths
|
|
9204
|
+
storiesPaths: project.storiesPaths,
|
|
9205
|
+
hasCsfFactoryPreview: project.hasCsfFactoryPreview
|
|
9198
9206
|
})), detectingAutomigrationTask = prompt5.taskLog({
|
|
9199
9207
|
id: "detect-automigrations",
|
|
9200
9208
|
title: projectAutomigrationData.length > 1 ? `Detecting automigrations for ${projectAutomigrationData.length} projects...` : "Detecting automigrations..."
|
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_70ukk4nq7t from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_70ukk4nq7t from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_70ukk4nq7t from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_70ukk4nq7t.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_70ukk4nq7t.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_70ukk4nq7t.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-AL4R2ANQ.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.2.0-alpha.
|
|
3
|
+
"version": "10.2.0-alpha.5",
|
|
4
4
|
"description": "Storybook CLI: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"!src/**/*"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@storybook/codemod": "10.2.0-alpha.
|
|
40
|
+
"@storybook/codemod": "10.2.0-alpha.5",
|
|
41
41
|
"@types/semver": "^7.3.4",
|
|
42
42
|
"commander": "^14.0.1",
|
|
43
|
-
"create-storybook": "10.2.0-alpha.
|
|
43
|
+
"create-storybook": "10.2.0-alpha.5",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.2.0-alpha.
|
|
45
|
+
"storybook": "10.2.0-alpha.5",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_ikpmlp0kfnb from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_ikpmlp0kfnb from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_ikpmlp0kfnb from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_ikpmlp0kfnb.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_ikpmlp0kfnb.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_ikpmlp0kfnb.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|