@storybook/cli 11.0.0-alpha.5 → 11.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_node-chunks/{block-create-react-app-MUJEAJWZ.js → block-create-react-app-JZMA2YOZ.js} +8 -8
- package/dist/_node-chunks/{block-dependencies-versions-NO7SGHPX.js → block-dependencies-versions-DK7SMZVB.js} +21 -12
- package/dist/_node-chunks/{block-experimental-addon-test-P5AIPERY.js → block-experimental-addon-test-OHELLNGW.js} +9 -9
- package/dist/_node-chunks/{block-major-version-WWI2WIS2.js → block-major-version-TLNUEUXK.js} +9 -9
- package/dist/_node-chunks/{block-node-version-43NYZKC4.js → block-node-version-XGQ3ERJM.js} +8 -8
- package/dist/_node-chunks/{block-react-legacy-root-api-4JKQEIN5.js → block-react-legacy-root-api-4X7CYH5Z.js} +8 -8
- package/dist/_node-chunks/{block-webpack5-frameworks-ELINHXW5.js → block-webpack5-frameworks-CEUKFXUN.js} +11 -11
- package/dist/_node-chunks/{chunk-2MUKNWW5.js → chunk-CDHABZNR.js} +52 -45
- package/dist/_node-chunks/chunk-DDSAGSQ7.js +11 -0
- package/dist/_node-chunks/{chunk-SJEUIQ46.js → chunk-FBYVJBVM.js} +6 -6
- package/dist/_node-chunks/{chunk-7BUFIZL4.js → chunk-JBUBLTQC.js} +7 -7
- package/dist/_node-chunks/{chunk-AGADK3RL.js → chunk-XSI7LGHC.js} +7 -7
- package/dist/_node-chunks/{globby-6YVPAXG5.js → globby-CUVQMT7O.js} +8 -8
- package/dist/_node-chunks/{p-limit-GSIPL3UA.js → p-limit-L37OAZTF.js} +7 -7
- package/dist/_node-chunks/{run-ZECBPVC4.js → run-2YDTDDJT.js} +1953 -1593
- package/dist/bin/index.js +7 -7
- package/package.json +5 -5
- package/dist/_node-chunks/chunk-4GUNVUYY.js +0 -11
package/dist/_node-chunks/{block-create-react-app-MUJEAJWZ.js → block-create-react-app-JZMA2YOZ.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-DDSAGSQ7.js";
|
|
13
|
+
import "./chunk-FBYVJBVM.js";
|
|
14
14
|
|
|
15
15
|
// src/autoblock/block-create-react-app.ts
|
|
16
16
|
import { dedent } from "ts-dedent";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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-CDHABZNR.js";
|
|
15
|
+
import "./chunk-XSI7LGHC.js";
|
|
16
|
+
import "./chunk-JBUBLTQC.js";
|
|
17
|
+
import "./chunk-DDSAGSQ7.js";
|
|
18
|
+
import "./chunk-FBYVJBVM.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-dependencies-versions.ts
|
|
21
21
|
import { dedent } from "ts-dedent";
|
|
@@ -28,7 +28,7 @@ var minimalVersionsMap = {
|
|
|
28
28
|
"react-dom": "18.0.0",
|
|
29
29
|
svelte: "5.0.0",
|
|
30
30
|
vue: "3.0.0",
|
|
31
|
-
vite: "
|
|
31
|
+
vite: "6.3.0"
|
|
32
32
|
}, conditionalVersionsMap = {
|
|
33
33
|
vitest: { gatedBy: "@storybook/addon-vitest", minimumVersion: "4.0.0" }
|
|
34
34
|
}, blocker = {
|
|
@@ -104,6 +104,15 @@ var minimalVersionsMap = {
|
|
|
104
104
|
`,
|
|
105
105
|
link: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#react-require-v18-and-up"
|
|
106
106
|
};
|
|
107
|
+
case "vite":
|
|
108
|
+
return {
|
|
109
|
+
title: "Vite 6.3 or newer required",
|
|
110
|
+
message: dedent`
|
|
111
|
+
Support for Vite < 6.3.0 has been removed.
|
|
112
|
+
Please see the migration guide for more information:
|
|
113
|
+
`,
|
|
114
|
+
link: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#vite-requires-vite-63-or-higher"
|
|
115
|
+
};
|
|
107
116
|
default:
|
|
108
117
|
return {
|
|
109
118
|
title: `${data.packageName} version < ${data.minimumVersion} support removed`,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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_semver
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-JBUBLTQC.js";
|
|
15
|
+
import "./chunk-DDSAGSQ7.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FBYVJBVM.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-WWI2WIS2.js → block-major-version-TLNUEUXK.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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_semver
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-JBUBLTQC.js";
|
|
15
|
+
import "./chunk-DDSAGSQ7.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FBYVJBVM.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-major-version.ts
|
|
21
21
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-DDSAGSQ7.js";
|
|
13
|
+
import "./chunk-FBYVJBVM.js";
|
|
14
14
|
|
|
15
15
|
// src/autoblock/block-node-version.ts
|
|
16
16
|
import { MIN_SUPPORTED_NODE_DESCRIPTION, isNodeVersionSupported } from "storybook/internal/common";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-DDSAGSQ7.js";
|
|
13
|
+
import "./chunk-FBYVJBVM.js";
|
|
14
14
|
|
|
15
15
|
// src/autoblock/block-react-legacy-root-api.ts
|
|
16
16
|
import { dedent } from "ts-dedent";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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-CDHABZNR.js";
|
|
15
|
+
import "./chunk-XSI7LGHC.js";
|
|
16
|
+
import "./chunk-JBUBLTQC.js";
|
|
17
|
+
import "./chunk-DDSAGSQ7.js";
|
|
18
|
+
import "./chunk-FBYVJBVM.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-webpack5-frameworks.ts
|
|
21
21
|
var minimalVersionsMap = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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_p28xbsg3xzj.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XSI7LGHC.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JBUBLTQC.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FBYVJBVM.js";
|
|
23
23
|
|
|
24
24
|
// ../../../node_modules/picocolors/picocolors.js
|
|
25
25
|
var require_picocolors = __commonJS({
|
|
@@ -134,13 +134,13 @@ var import_picocolors = __toESM(require_picocolors(), 1), import_semver = __toES
|
|
|
134
134
|
// src/autoblock/index.ts
|
|
135
135
|
var blockers = () => [
|
|
136
136
|
// add/remove blockers here
|
|
137
|
-
import("./block-dependencies-versions-
|
|
138
|
-
import("./block-create-react-app-
|
|
139
|
-
import("./block-node-version-
|
|
140
|
-
import("./block-webpack5-frameworks-
|
|
141
|
-
import("./block-major-version-
|
|
142
|
-
import("./block-experimental-addon-test-
|
|
143
|
-
import("./block-react-legacy-root-api-
|
|
137
|
+
import("./block-dependencies-versions-DK7SMZVB.js"),
|
|
138
|
+
import("./block-create-react-app-JZMA2YOZ.js"),
|
|
139
|
+
import("./block-node-version-XGQ3ERJM.js"),
|
|
140
|
+
import("./block-webpack5-frameworks-CEUKFXUN.js"),
|
|
141
|
+
import("./block-major-version-TLNUEUXK.js"),
|
|
142
|
+
import("./block-experimental-addon-test-OHELLNGW.js"),
|
|
143
|
+
import("./block-react-legacy-root-api-4X7CYH5Z.js")
|
|
144
144
|
], autoblock = async (options, list = blockers()) => list.length === 0 ? null : await Promise.all(
|
|
145
145
|
list.map(async (i) => {
|
|
146
146
|
let blocker = (await i).blocker;
|
|
@@ -155,6 +155,12 @@ import { getStorybookData } from "storybook/internal/cli";
|
|
|
155
155
|
var getFrameworkPackageName = (mainConfig) => {
|
|
156
156
|
let packageNameOrPath = typeof mainConfig?.framework == "string" ? mainConfig.framework : mainConfig?.framework?.name;
|
|
157
157
|
return packageNameOrPath ? extractFrameworkPackageName(packageNameOrPath) : null;
|
|
158
|
+
}, getRendererName = (mainConfig) => {
|
|
159
|
+
let frameworkPackageName = getFrameworkPackageName(mainConfig);
|
|
160
|
+
if (!frameworkPackageName)
|
|
161
|
+
return null;
|
|
162
|
+
let frameworkName = frameworkPackages[frameworkPackageName];
|
|
163
|
+
return frameworkToRenderer[frameworkName];
|
|
158
164
|
};
|
|
159
165
|
|
|
160
166
|
// src/util.ts
|
|
@@ -218,7 +224,7 @@ var processProject = async ({
|
|
|
218
224
|
storiesPaths,
|
|
219
225
|
versionSpecifier,
|
|
220
226
|
versionInstalled
|
|
221
|
-
} = await getStorybookData({ configDir });
|
|
227
|
+
} = await getStorybookData({ configDir, packageManagerName: options.packageManager });
|
|
222
228
|
logger.debug(`${name} - Validating before version... ${versionInstalled}`), validateVersion(versionInstalled);
|
|
223
229
|
let isCanary = isCanaryVersion(currentCLIVersion) || isCanaryVersion(versionInstalled) || isPkgPrNewVersionSpecifier(versionSpecifier);
|
|
224
230
|
logger.debug(`${name} - Validating upgrade compatibility...`), validateUpgradeCompatibility(currentCLIVersion, versionInstalled, isCanary), logger.debug(`${name} - Fetching NPM version information...`);
|
|
@@ -261,7 +267,7 @@ var processProject = async ({
|
|
|
261
267
|
};
|
|
262
268
|
}
|
|
263
269
|
}, collectProjects = async (options, configDirs, onProjectScanStart) => {
|
|
264
|
-
let { default: pLimit } = await import("./p-limit-
|
|
270
|
+
let { default: pLimit } = await import("./p-limit-L37OAZTF.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
265
271
|
(configDir) => limit(
|
|
266
272
|
() => processProject({
|
|
267
273
|
configDir,
|
|
@@ -280,7 +286,7 @@ var processProject = async ({
|
|
|
280
286
|
isCLIPrerelease,
|
|
281
287
|
isCLIExactPrerelease,
|
|
282
288
|
isCLIExactLatest
|
|
283
|
-
} = config, storybookCoreUpgrades = Object.keys(dependencies).filter(
|
|
289
|
+
} = config, prereleaseModifier = isCLIExactPrerelease && !isCanary ? "^" : "", storybookCoreUpgrades = Object.keys(dependencies).filter(
|
|
284
290
|
(dependency) => dependency in versions
|
|
285
291
|
).map((dependency) => {
|
|
286
292
|
let versionSpec = dependencies[dependency], pkgPrNewSpecifier = getPkgPrNewPackageSpecifier(
|
|
@@ -292,10 +298,12 @@ var processProject = async ({
|
|
|
292
298
|
if (!versionSpec)
|
|
293
299
|
return `${dependency}@${versions[dependency]}`;
|
|
294
300
|
let { modifier } = getVersionModifier(versionSpec);
|
|
295
|
-
return `${dependency}@${isCLIOutdated || isCanary ? "" : modifier}${versions[dependency]}`;
|
|
301
|
+
return `${dependency}@${isCLIPrerelease ? prereleaseModifier : isCLIOutdated || isCanary ? "" : modifier}${versions[dependency]}`;
|
|
296
302
|
}), storybookSatelliteUpgrades = [];
|
|
297
303
|
if (isCLIExactPrerelease || isCLIExactLatest) {
|
|
298
|
-
let satelliteDependencies = Object.keys(dependencies).filter(
|
|
304
|
+
let satelliteDependencies = Object.keys(dependencies).filter(
|
|
305
|
+
(dependency) => isSatelliteAddon(dependency) && !dependencies[dependency]?.startsWith("workspace:")
|
|
306
|
+
);
|
|
299
307
|
if (satelliteDependencies.length > 0)
|
|
300
308
|
try {
|
|
301
309
|
let upgradePromises = satelliteDependencies.map(async (dependency) => {
|
|
@@ -305,8 +313,8 @@ var processProject = async ({
|
|
|
305
313
|
), [mostRecentVersion] = (0, import_semver.rsort)(versions2.filter((version) => version !== null));
|
|
306
314
|
if (!mostRecentVersion)
|
|
307
315
|
return null;
|
|
308
|
-
let { modifier } = getVersionModifier(dependencies[dependency] ?? "");
|
|
309
|
-
return `${dependency}@${
|
|
316
|
+
let { modifier } = getVersionModifier(dependencies[dependency] ?? ""), finalModifier = isCLIPrerelease && (0, import_semver.prerelease)(mostRecentVersion) ? prereleaseModifier : modifier;
|
|
317
|
+
return `${dependency}@${finalModifier}${mostRecentVersion}`;
|
|
310
318
|
} catch {
|
|
311
319
|
return null;
|
|
312
320
|
}
|
|
@@ -325,28 +333,26 @@ var processProject = async ({
|
|
|
325
333
|
generateUpgradeSpecs(packageJson.devDependencies, config),
|
|
326
334
|
generateUpgradeSpecs(packageJson.peerDependencies, config)
|
|
327
335
|
]);
|
|
328
|
-
logger.debug(JSON.stringify({ upgradedDependencies }, null, 2)), logger.debug(JSON.stringify({ upgradedDevDependencies }, null, 2)), logger.debug(JSON.stringify({ upgradedPeerDependencies }, null, 2))
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
type
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
upgradedPeerDependencies
|
|
349
|
-
);
|
|
336
|
+
logger.debug(JSON.stringify({ upgradedDependencies }, null, 2)), logger.debug(JSON.stringify({ upgradedDevDependencies }, null, 2)), logger.debug(JSON.stringify({ upgradedPeerDependencies }, null, 2));
|
|
337
|
+
let upgrades = [
|
|
338
|
+
["dependencies", upgradedDependencies],
|
|
339
|
+
["devDependencies", upgradedDevDependencies],
|
|
340
|
+
["peerDependencies", upgradedPeerDependencies]
|
|
341
|
+
];
|
|
342
|
+
for (let [type, specifiers] of upgrades) {
|
|
343
|
+
let directSpecifiers = packageManager.writeCatalogUpgrades(
|
|
344
|
+
specifiers,
|
|
345
|
+
packageJson[type] ?? {}
|
|
346
|
+
);
|
|
347
|
+
await packageManager.addDependencies(
|
|
348
|
+
{
|
|
349
|
+
type,
|
|
350
|
+
skipInstall: !0,
|
|
351
|
+
packageJsonInfo: JsPackageManager.getPackageJsonInfo(packageJsonPath)
|
|
352
|
+
},
|
|
353
|
+
directSpecifiers
|
|
354
|
+
);
|
|
355
|
+
}
|
|
350
356
|
}
|
|
351
357
|
}, formatProjectDirectories = (projectData, modifier) => projectData.length === 0 ? "" : projectData.map((project) => project.configDir).map((dir) => `${modifier} ${import_picocolors.default.cyan(shortenPath(dir))}`).join(`
|
|
352
358
|
`), shortenPath = (path) => {
|
|
@@ -503,6 +509,7 @@ After addressing this, you can try running the upgrade command again. You can al
|
|
|
503
509
|
export {
|
|
504
510
|
require_picocolors,
|
|
505
511
|
getFrameworkPackageName,
|
|
512
|
+
getRendererName,
|
|
506
513
|
getStorybookData,
|
|
507
514
|
up,
|
|
508
515
|
findOutdatedPackage,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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-FBYVJBVM.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_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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-FBYVJBVM.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_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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-XSI7LGHC.js";
|
|
25
|
+
import "./chunk-FBYVJBVM.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_zn481lvwxa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zn481lvwxa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zn481lvwxa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zn481lvwxa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zn481lvwxa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zn481lvwxa.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-FBYVJBVM.js";
|
|
13
13
|
|
|
14
14
|
// ../../../node_modules/yocto-queue/index.js
|
|
15
15
|
var Node = class {
|