@storybook/cli 11.0.0-alpha.0 → 11.0.0-alpha.2
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-S75U52PV.js +42 -0
- package/dist/_node-chunks/block-dependencies-versions-OE33DFGG.js +109 -0
- package/dist/_node-chunks/{block-experimental-addon-test-XNH74PCO.js → block-experimental-addon-test-WOXAZ3RX.js} +9 -9
- package/dist/_node-chunks/{block-major-version-YOQYZU5B.js → block-major-version-RDFODY7R.js} +9 -9
- package/dist/_node-chunks/block-node-version-UYPE22YT.js +33 -0
- package/dist/_node-chunks/block-react-legacy-root-api-PGXZ7QMZ.js +46 -0
- package/dist/_node-chunks/{block-webpack5-frameworks-22N7B7LN.js → block-webpack5-frameworks-YMQMDT4K.js} +11 -11
- package/dist/_node-chunks/{chunk-Z6UVGYIX.js → chunk-4FMYWB7X.js} +19 -19
- package/dist/_node-chunks/chunk-AN6OIB5U.js +11 -0
- package/dist/_node-chunks/{chunk-ZFSSZ5II.js → chunk-HQDYW2YJ.js} +7 -7
- package/dist/_node-chunks/{chunk-ERKEB6JM.js → chunk-J3WRLX7B.js} +6 -6
- package/dist/_node-chunks/{chunk-L7H6KZKS.js → chunk-W57OB62U.js} +62 -104
- package/dist/_node-chunks/{globby-3N2PP55V.js → globby-WMCQAVLC.js} +8 -8
- package/dist/_node-chunks/{p-limit-NCZCMJYE.js → p-limit-LXSOEKNZ.js} +7 -7
- package/dist/_node-chunks/{run-X5OTTCRL.js → run-RAVT6J4R.js} +2524 -2814
- package/dist/bin/index.js +8 -9
- package/package.json +5 -5
- package/dist/_node-chunks/block-dependencies-versions-325L2TXU.js +0 -68
- package/dist/_node-chunks/block-node-version-HFQ6OZ6T.js +0 -38
- package/dist/_node-chunks/chunk-QMXJDFWB.js +0 -11
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gumrwr0b82r from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gumrwr0b82r from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gumrwr0b82r from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gumrwr0b82r.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gumrwr0b82r.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gumrwr0b82r.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_26m8jb11507.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4FMYWB7X.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HQDYW2YJ.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-J3WRLX7B.js";
|
|
23
23
|
|
|
24
24
|
// ../../../node_modules/picocolors/picocolors.js
|
|
25
25
|
var require_picocolors = __commonJS({
|
|
@@ -91,13 +91,20 @@ import { getVitePlusVersions } from "storybook/internal/common";
|
|
|
91
91
|
import { CLI_COLORS } from "storybook/internal/node-logger";
|
|
92
92
|
|
|
93
93
|
// src/util.ts
|
|
94
|
-
import {
|
|
95
|
-
|
|
94
|
+
import {
|
|
95
|
+
HandledError,
|
|
96
|
+
JsPackageManager,
|
|
97
|
+
getPkgPrNewPackageSpecifier,
|
|
98
|
+
getProjectRoot,
|
|
99
|
+
isPkgPrNewVersionSpecifier,
|
|
100
|
+
isSatelliteAddon,
|
|
101
|
+
versions
|
|
102
|
+
} from "storybook/internal/common";
|
|
96
103
|
import {
|
|
97
104
|
experimental_loadStorybook,
|
|
98
105
|
getStoriesPathsFromConfig
|
|
99
106
|
} from "storybook/internal/core-server";
|
|
100
|
-
import { logTracker, logger
|
|
107
|
+
import { logTracker, logger, prompt } from "storybook/internal/node-logger";
|
|
101
108
|
import {
|
|
102
109
|
UpgradeStorybookToLowerVersionError,
|
|
103
110
|
UpgradeStorybookUnknownCurrentVersionError
|
|
@@ -121,16 +128,18 @@ function up(base, options) {
|
|
|
121
128
|
}
|
|
122
129
|
|
|
123
130
|
// src/util.ts
|
|
124
|
-
var
|
|
131
|
+
var import_picocolors = __toESM(require_picocolors(), 1), import_semver = __toESM(require_semver(), 1);
|
|
125
132
|
|
|
126
133
|
// src/autoblock/index.ts
|
|
127
134
|
var blockers = () => [
|
|
128
135
|
// add/remove blockers here
|
|
129
|
-
import("./block-dependencies-versions-
|
|
130
|
-
import("./block-
|
|
131
|
-
import("./block-
|
|
132
|
-
import("./block-
|
|
133
|
-
import("./block-
|
|
136
|
+
import("./block-dependencies-versions-OE33DFGG.js"),
|
|
137
|
+
import("./block-create-react-app-S75U52PV.js"),
|
|
138
|
+
import("./block-node-version-UYPE22YT.js"),
|
|
139
|
+
import("./block-webpack5-frameworks-YMQMDT4K.js"),
|
|
140
|
+
import("./block-major-version-RDFODY7R.js"),
|
|
141
|
+
import("./block-experimental-addon-test-WOXAZ3RX.js"),
|
|
142
|
+
import("./block-react-legacy-root-api-PGXZ7QMZ.js")
|
|
134
143
|
], autoblock = async (options, list = blockers()) => list.length === 0 ? null : await Promise.all(
|
|
135
144
|
list.map(async (i) => {
|
|
136
145
|
let blocker = (await i).blocker;
|
|
@@ -139,15 +148,8 @@ var blockers = () => [
|
|
|
139
148
|
);
|
|
140
149
|
|
|
141
150
|
// src/automigrate/helpers/mainConfigFile.ts
|
|
142
|
-
|
|
143
|
-
import {
|
|
144
|
-
builderPackages,
|
|
145
|
-
extractFrameworkPackageName,
|
|
146
|
-
frameworkPackages
|
|
147
|
-
} from "storybook/internal/common";
|
|
151
|
+
import { extractFrameworkPackageName, frameworkPackages } from "storybook/internal/common";
|
|
148
152
|
import { frameworkToRenderer } from "storybook/internal/common";
|
|
149
|
-
import { readConfig, writeConfig as writeConfigFile } from "storybook/internal/csf-tools";
|
|
150
|
-
import { logger } from "storybook/internal/node-logger";
|
|
151
153
|
import { getStorybookData } from "storybook/internal/cli";
|
|
152
154
|
var getFrameworkPackageName = (mainConfig) => {
|
|
153
155
|
let packageNameOrPath = typeof mainConfig?.framework == "string" ? mainConfig.framework : mainConfig?.framework?.name;
|
|
@@ -159,45 +161,6 @@ var getFrameworkPackageName = (mainConfig) => {
|
|
|
159
161
|
let frameworkName = frameworkPackages[frameworkPackageName];
|
|
160
162
|
return frameworkToRenderer[frameworkName];
|
|
161
163
|
};
|
|
162
|
-
var updateMainConfig = async ({ mainConfigPath, dryRun }, callback) => {
|
|
163
|
-
try {
|
|
164
|
-
let main = await readConfig(mainConfigPath);
|
|
165
|
-
await callback(main), dryRun || await writeConfigFile(main);
|
|
166
|
-
} catch (e) {
|
|
167
|
-
logger.log(
|
|
168
|
-
`\u274C The migration failed to update your ${import_picocolors.default.blue(
|
|
169
|
-
mainConfigPath
|
|
170
|
-
)} on your behalf because of the following error:
|
|
171
|
-
${e}
|
|
172
|
-
`
|
|
173
|
-
), logger.log(
|
|
174
|
-
`\u26A0\uFE0F Storybook automigrations are based on AST parsing and it's possible that your ${import_picocolors.default.blue(
|
|
175
|
-
mainConfigPath
|
|
176
|
-
)} file contains a non-standard format (e.g. your export is not an object) or that there was an error when parsing dynamic values (e.g. "require" calls, or usage of environment variables). When your main config is non-standard, automigrations are unfortunately not possible. Please follow the instructions given previously and follow the documentation to make the updates manually.`
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
function containsESMUsage(content) {
|
|
181
|
-
let hasImportStatement = /^\s*import\s+/m.test(content) || /^\s*import\s*{/m.test(content) || /^\s*import\s*\(/m.test(content), hasExportStatement = /^\s*export\s+/m.test(content) || /^\s*export\s*{/m.test(content) || /^\s*export\s*default/m.test(content), hasImportMeta = /import\.meta/.test(content);
|
|
182
|
-
return hasImportStatement || hasExportStatement || hasImportMeta;
|
|
183
|
-
}
|
|
184
|
-
function containsRequireUsage(content) {
|
|
185
|
-
let requireCallRegex = /\brequire\(/, requireDotRegex = /\brequire\./;
|
|
186
|
-
return requireCallRegex.test(content) || requireDotRegex.test(content);
|
|
187
|
-
}
|
|
188
|
-
function containsPatternUsage(content, pattern) {
|
|
189
|
-
let cleanContent = ((s) => s.replace(/(['"`])(?:\\.|(?!\1)[\s\S])*?\1/g, '""'))(content).replace(/\/\*[\s\S]*?\*\//g, "").split(`
|
|
190
|
-
`).map((line) => line.split("//")[0]).join(`
|
|
191
|
-
`);
|
|
192
|
-
return pattern.test(cleanContent);
|
|
193
|
-
}
|
|
194
|
-
function containsDirnameUsage(content) {
|
|
195
|
-
return containsPatternUsage(content, /\b__dirname\b/);
|
|
196
|
-
}
|
|
197
|
-
function containsFilenameUsage(content) {
|
|
198
|
-
return containsPatternUsage(content, /\b__filename\b/);
|
|
199
|
-
}
|
|
200
|
-
var bannerComment = "// This file has been automatically migrated to valid ESM format by Storybook.", hasRequireBanner = (content) => content.includes(bannerComment);
|
|
201
164
|
|
|
202
165
|
// src/util.ts
|
|
203
166
|
var STORYBOOK_DIR_PATTERN = ["**/.storybook", "**/.rnstorybook"], isSuccessResult = (result) => !("error" in result), isErrorResult = (result) => "error" in result, getVersionModifier = (versionSpecifier) => {
|
|
@@ -211,7 +174,7 @@ var STORYBOOK_DIR_PATTERN = ["**/.storybook", "**/.rnstorybook"], isSuccessResul
|
|
|
211
174
|
modifier,
|
|
212
175
|
useFixed: !modifier
|
|
213
176
|
};
|
|
214
|
-
}, isCanaryVersion = (version) => version.startsWith("0.0.0") || version.startsWith("portal:") || version.startsWith("workspace:");
|
|
177
|
+
}, isCanaryVersion = (version) => version.startsWith("0.0.0") || version.startsWith("portal:") || version.startsWith("workspace:") || isPkgPrNewVersionSpecifier(version);
|
|
215
178
|
function validateVersion(version) {
|
|
216
179
|
if (!version)
|
|
217
180
|
throw new UpgradeStorybookUnknownCurrentVersionError();
|
|
@@ -224,20 +187,23 @@ var validateUpgradeCompatibility = (currentVersion, beforeVersion, isCanary) =>
|
|
|
224
187
|
});
|
|
225
188
|
}, findStorybookProjects = async (cwd = process.cwd()) => {
|
|
226
189
|
try {
|
|
227
|
-
|
|
190
|
+
logger.debug("Finding Storybook projects...");
|
|
228
191
|
let storybookDirs = await globby(STORYBOOK_DIR_PATTERN, {
|
|
229
192
|
cwd,
|
|
230
193
|
dot: !0,
|
|
231
194
|
gitignore: !0,
|
|
195
|
+
// Packages like @nx/storybook ship .storybook templates, and globby misses .gitignore patterns
|
|
196
|
+
// like `**/**/node_modules/`, so never rely on .gitignore to skip them.
|
|
197
|
+
ignore: ["**/node_modules/**"],
|
|
232
198
|
absolute: !0,
|
|
233
199
|
onlyDirectories: !0,
|
|
234
200
|
followSymbolicLinks: !1
|
|
235
201
|
});
|
|
236
|
-
return
|
|
202
|
+
return logger.debug(`Found ${storybookDirs.length} Storybook projects`), storybookDirs.length === 0 ? [await prompt.text({
|
|
237
203
|
message: "No Storybook projects were found. Please enter the path to the .storybook directory for the project you want to upgrade."
|
|
238
204
|
})] : storybookDirs;
|
|
239
205
|
} catch (error) {
|
|
240
|
-
throw
|
|
206
|
+
throw logger.error("Failed to find Storybook projects"), error;
|
|
241
207
|
}
|
|
242
208
|
};
|
|
243
209
|
var processProject = async ({
|
|
@@ -249,7 +215,7 @@ var processProject = async ({
|
|
|
249
215
|
try {
|
|
250
216
|
onScanStart();
|
|
251
217
|
let name = configDir.replace(getProjectRoot(), "");
|
|
252
|
-
|
|
218
|
+
logger.debug("Getting Storybook data...");
|
|
253
219
|
let {
|
|
254
220
|
configDir: resolvedConfigDir,
|
|
255
221
|
mainConfig,
|
|
@@ -257,21 +223,21 @@ var processProject = async ({
|
|
|
257
223
|
packageManager,
|
|
258
224
|
previewConfigPath,
|
|
259
225
|
storiesPaths,
|
|
260
|
-
|
|
261
|
-
|
|
226
|
+
versionSpecifier,
|
|
227
|
+
versionInstalled
|
|
262
228
|
} = await getStorybookData({ configDir });
|
|
263
|
-
|
|
264
|
-
let isCanary = isCanaryVersion(currentCLIVersion) || isCanaryVersion(versionInstalled);
|
|
265
|
-
|
|
229
|
+
logger.debug(`${name} - Validating before version... ${versionInstalled}`), validateVersion(versionInstalled);
|
|
230
|
+
let isCanary = isCanaryVersion(currentCLIVersion) || isCanaryVersion(versionInstalled) || isPkgPrNewVersionSpecifier(versionSpecifier);
|
|
231
|
+
logger.debug(`${name} - Validating upgrade compatibility...`), validateUpgradeCompatibility(currentCLIVersion, versionInstalled, isCanary), logger.debug(`${name} - Fetching NPM version information...`);
|
|
266
232
|
let [latestCLIVersionOnNPM, latestPrereleaseCLIVersionOnNPM] = await Promise.all([
|
|
267
233
|
packageManager.latestVersion("storybook"),
|
|
268
234
|
packageManager.latestVersion("storybook@next")
|
|
269
235
|
]);
|
|
270
|
-
latestCLIVersionOnNPM == null &&
|
|
236
|
+
latestCLIVersionOnNPM == null && logger.debug(
|
|
271
237
|
`${name} - Could not determine the latest Storybook version from the registry; skipping the outdated-version check.`
|
|
272
238
|
);
|
|
273
239
|
let isCLIOutdated = latestCLIVersionOnNPM != null && (0, import_semver.lt)(currentCLIVersion, latestCLIVersionOnNPM), isCLIExactLatest = currentCLIVersion === latestCLIVersionOnNPM, isCLIPrerelease = (0, import_semver.prerelease)(currentCLIVersion) !== null, isCLIExactPrerelease = currentCLIVersion === latestPrereleaseCLIVersionOnNPM, isUpgrade = (0, import_semver.lt)(versionInstalled, currentCLIVersion), autoblockerCheckResults = null;
|
|
274
|
-
return typeof mainConfig != "boolean" && typeof mainConfigPath < "u" && !options.force && (
|
|
240
|
+
return typeof mainConfig != "boolean" && typeof mainConfigPath < "u" && !options.force && (logger.debug(`${name} - Evaluating blockers...`), autoblockerCheckResults = await autoblock({
|
|
275
241
|
packageManager,
|
|
276
242
|
configDir: resolvedConfigDir,
|
|
277
243
|
mainConfig,
|
|
@@ -290,19 +256,19 @@ var processProject = async ({
|
|
|
290
256
|
currentCLIVersion,
|
|
291
257
|
latestCLIVersionOnNPM,
|
|
292
258
|
isCLIExactPrerelease,
|
|
259
|
+
storybookVersionSpecifier: versionSpecifier,
|
|
293
260
|
autoblockerCheckResults,
|
|
294
261
|
previewConfigPath,
|
|
295
|
-
storiesPaths
|
|
296
|
-
hasCsfFactoryPreview
|
|
262
|
+
storiesPaths
|
|
297
263
|
};
|
|
298
264
|
} catch (error) {
|
|
299
|
-
return
|
|
265
|
+
return logger.debug(String(error)), {
|
|
300
266
|
configDir,
|
|
301
267
|
error
|
|
302
268
|
};
|
|
303
269
|
}
|
|
304
270
|
}, collectProjects = async (options, configDirs, onProjectScanStart) => {
|
|
305
|
-
let { default: pLimit } = await import("./p-limit-
|
|
271
|
+
let { default: pLimit } = await import("./p-limit-LXSOEKNZ.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
306
272
|
(configDir) => limit(
|
|
307
273
|
() => processProject({
|
|
308
274
|
configDir,
|
|
@@ -324,7 +290,12 @@ var processProject = async ({
|
|
|
324
290
|
} = config, storybookCoreUpgrades = Object.keys(dependencies).filter(
|
|
325
291
|
(dependency) => dependency in versions
|
|
326
292
|
).map((dependency) => {
|
|
327
|
-
let versionSpec = dependencies[dependency]
|
|
293
|
+
let versionSpec = dependencies[dependency], pkgPrNewSpecifier = getPkgPrNewPackageSpecifier(
|
|
294
|
+
dependency,
|
|
295
|
+
config.storybookVersionSpecifier
|
|
296
|
+
);
|
|
297
|
+
if (pkgPrNewSpecifier)
|
|
298
|
+
return `${dependency}@${pkgPrNewSpecifier}`;
|
|
328
299
|
if (!versionSpec)
|
|
329
300
|
return `${dependency}@${versions[dependency]}`;
|
|
330
301
|
let { modifier } = getVersionModifier(versionSpec);
|
|
@@ -347,7 +318,7 @@ var processProject = async ({
|
|
|
347
318
|
});
|
|
348
319
|
storybookSatelliteUpgrades = (await Promise.all(upgradePromises)).filter((result) => result !== null);
|
|
349
320
|
} catch {
|
|
350
|
-
|
|
321
|
+
logger.warn("Failed to fetch satellite dependencies");
|
|
351
322
|
}
|
|
352
323
|
}
|
|
353
324
|
return [...storybookCoreUpgrades, ...storybookSatelliteUpgrades];
|
|
@@ -359,7 +330,7 @@ var processProject = async ({
|
|
|
359
330
|
generateUpgradeSpecs(packageJson.devDependencies, config),
|
|
360
331
|
generateUpgradeSpecs(packageJson.peerDependencies, config)
|
|
361
332
|
]);
|
|
362
|
-
|
|
333
|
+
logger.debug(JSON.stringify({ upgradedDependencies }, null, 2)), logger.debug(JSON.stringify({ upgradedDevDependencies }, null, 2)), logger.debug(JSON.stringify({ upgradedPeerDependencies }, null, 2)), await packageManager.addDependencies(
|
|
363
334
|
{
|
|
364
335
|
type: "dependencies",
|
|
365
336
|
skipInstall: !0,
|
|
@@ -382,7 +353,7 @@ var processProject = async ({
|
|
|
382
353
|
upgradedPeerDependencies
|
|
383
354
|
);
|
|
384
355
|
}
|
|
385
|
-
}, formatProjectDirectories = (projectData, modifier) => projectData.length === 0 ? "" : projectData.map((project) => project.configDir).map((dir) => `${modifier} ${
|
|
356
|
+
}, formatProjectDirectories = (projectData, modifier) => projectData.length === 0 ? "" : projectData.map((project) => project.configDir).map((dir) => `${modifier} ${import_picocolors.default.cyan(shortenPath(dir))}`).join(`
|
|
386
357
|
`), shortenPath = (path) => {
|
|
387
358
|
let gitRoot = getProjectRoot();
|
|
388
359
|
return path.replace(gitRoot, "");
|
|
@@ -392,12 +363,12 @@ var processProject = async ({
|
|
|
392
363
|
let projectsFoundMessage = [
|
|
393
364
|
"Multiple Storybook projects found. Storybook can only upgrade all projects at once:"
|
|
394
365
|
];
|
|
395
|
-
if (validProjects.length > 0 && projectsFoundMessage.push(formatProjectDirectories(validProjects,
|
|
366
|
+
if (validProjects.length > 0 && projectsFoundMessage.push(formatProjectDirectories(validProjects, logger.SYMBOLS.success)), errorProjects.length > 0 && (logTracker.enableLogWriting(), projectsFoundMessage.push(
|
|
396
367
|
`There were some errors while collecting data for the following projects:
|
|
397
|
-
${formatProjectDirectories(errorProjects,
|
|
368
|
+
${formatProjectDirectories(errorProjects, logger.SYMBOLS.error)}`,
|
|
398
369
|
"",
|
|
399
370
|
"Full logs will be available in the Storybook debug logs at the end of the run."
|
|
400
|
-
)),
|
|
371
|
+
)), logger.log(projectsFoundMessage.join(`
|
|
401
372
|
`)), !(yes || await prompt.confirm({
|
|
402
373
|
message: "Continue with the upgrade?",
|
|
403
374
|
initialValue: !0
|
|
@@ -428,7 +399,7 @@ ${formatProjectDirectories(errorProjects, logger2.SYMBOLS.error)}`,
|
|
|
428
399
|
);
|
|
429
400
|
task.stop(`${projects.length} ${projects.length > 1 ? "projects" : "project"} detected`);
|
|
430
401
|
let validProjects = projects.filter(isSuccessResult), errorProjects = projects.filter(isErrorResult);
|
|
431
|
-
if (
|
|
402
|
+
if (logger.debug(
|
|
432
403
|
`Found ${validProjects.length} valid projects and ${errorProjects.length} error projects`
|
|
433
404
|
), validProjects.length === 1)
|
|
434
405
|
return { allProjects: validProjects, selectedProjects: validProjects };
|
|
@@ -450,18 +421,12 @@ Please fix the errors and run the upgrade command again.`
|
|
|
450
421
|
);
|
|
451
422
|
return selectedProjects ? { allProjects: validProjects, selectedProjects } : void 0;
|
|
452
423
|
} catch (error) {
|
|
453
|
-
throw error instanceof HandledError ||
|
|
424
|
+
throw error instanceof HandledError || logger.error("Failed to get projects"), error;
|
|
454
425
|
}
|
|
455
426
|
}, findFilesUp = (matchers, cwd) => {
|
|
456
427
|
let matchingFiles = [];
|
|
457
428
|
for (let directory of up(cwd, { last: getProjectRoot() }))
|
|
458
|
-
matchingFiles.push(
|
|
459
|
-
...globbySync(matchers, {
|
|
460
|
-
gitignore: !0,
|
|
461
|
-
absolute: !0,
|
|
462
|
-
cwd: directory
|
|
463
|
-
})
|
|
464
|
-
);
|
|
429
|
+
matchingFiles.push(...globbySync(matchers, { absolute: !0, cwd: directory }));
|
|
465
430
|
return matchingFiles;
|
|
466
431
|
};
|
|
467
432
|
|
|
@@ -538,13 +503,6 @@ export {
|
|
|
538
503
|
require_picocolors,
|
|
539
504
|
getFrameworkPackageName,
|
|
540
505
|
getRendererName,
|
|
541
|
-
updateMainConfig,
|
|
542
|
-
containsESMUsage,
|
|
543
|
-
containsRequireUsage,
|
|
544
|
-
containsDirnameUsage,
|
|
545
|
-
containsFilenameUsage,
|
|
546
|
-
bannerComment,
|
|
547
|
-
hasRequireBanner,
|
|
548
506
|
getStorybookData,
|
|
549
507
|
up,
|
|
550
508
|
findOutdatedPackage,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gumrwr0b82r from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gumrwr0b82r from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gumrwr0b82r from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gumrwr0b82r.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gumrwr0b82r.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gumrwr0b82r.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-4FMYWB7X.js";
|
|
25
|
+
import "./chunk-J3WRLX7B.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_gumrwr0b82r from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gumrwr0b82r from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gumrwr0b82r from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gumrwr0b82r.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gumrwr0b82r.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gumrwr0b82r.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-J3WRLX7B.js";
|
|
13
13
|
|
|
14
14
|
// ../../../node_modules/yocto-queue/index.js
|
|
15
15
|
var Node = class {
|