create-storybook 10.5.0-beta.2 → 10.5.0

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.
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_x0oejp749q from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x0oejp749q from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x0oejp749q from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ahgotaj50fn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ahgotaj50fn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ahgotaj50fn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x0oejp749q.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x0oejp749q.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x0oejp749q.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ahgotaj50fn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ahgotaj50fn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ahgotaj50fn.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 CJS_COMPAT_NODE_URL_x0oejp749q from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x0oejp749q from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x0oejp749q from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ahgotaj50fn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ahgotaj50fn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ahgotaj50fn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x0oejp749q.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x0oejp749q.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x0oejp749q.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ahgotaj50fn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ahgotaj50fn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ahgotaj50fn.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 CJS_COMPAT_NODE_URL_x0oejp749q from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x0oejp749q from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x0oejp749q from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ahgotaj50fn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ahgotaj50fn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ahgotaj50fn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x0oejp749q.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x0oejp749q.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x0oejp749q.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ahgotaj50fn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ahgotaj50fn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ahgotaj50fn.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -14,11 +14,11 @@ import {
14
14
  normalize,
15
15
  relative,
16
16
  resolve
17
- } from "./chunk-CQDFGDU3.js";
17
+ } from "./chunk-MJZ7DWDA.js";
18
18
  import {
19
19
  __commonJS,
20
20
  __toESM
21
- } from "./chunk-XDSFK2SZ.js";
21
+ } from "./chunk-QT5YZBEG.js";
22
22
 
23
23
  // ../../../node_modules/ts-dedent/dist/index.js
24
24
  var require_dist = __commonJS({
@@ -1595,7 +1595,11 @@ async function postinstall(options) {
1595
1595
  args.push("--loglevel", "silent"), args.push("--skip-doctor"), options.yes && args.push("--yes"), options.packageManager && args.push("--package-manager", options.packageManager), options.configDir && args.push("--config-dir", options.configDir), await JsPackageManagerFactory2.getPackageManager({
1596
1596
  force: options.packageManager,
1597
1597
  configDir: options.configDir
1598
- }).runPackageCommand({ args, useRemotePkg: !!options.skipInstall });
1598
+ }).runPackageCommand({
1599
+ args,
1600
+ stdio: ["ignore", "pipe", "pipe"],
1601
+ useRemotePkg: !!options.skipInstall
1602
+ });
1599
1603
  }
1600
1604
 
1601
1605
  // ../../addons/vitest/src/postinstall.ts
@@ -1621,7 +1625,7 @@ import {
1621
1625
  } from "storybook/internal/server-errors";
1622
1626
  import { SupportedFramework as SupportedFramework4 } from "storybook/internal/types";
1623
1627
  var import_ts_dedent8 = __toESM(require_dist(), 1);
1624
- import { coerce, satisfies } from "semver";
1628
+ import { satisfies } from "semver";
1625
1629
 
1626
1630
  // ../../addons/vitest/src/angular-vitest-postinstall.ts
1627
1631
  import {
@@ -1772,13 +1776,13 @@ import {
1772
1776
  async function getTemplatePath(name) {
1773
1777
  switch (name) {
1774
1778
  case "vitest.config.template":
1775
- return import("./vitest.config.template-A5YOSIN3.js");
1779
+ return import("./vitest.config.template-PQONZ76S.js");
1776
1780
  case "vitest.config.4.template":
1777
- return import("./vitest.config.4.template-HDMY3VWT.js");
1781
+ return import("./vitest.config.4.template-WF2UKY36.js");
1778
1782
  case "vitest.config.3.2.template":
1779
- return import("./vitest.config.3.2.template-2UWTJRSK.js");
1783
+ return import("./vitest.config.3.2.template-MQQXTDT4.js");
1780
1784
  case "vitest.workspace.template":
1781
- return import("./vitest.workspace.template-X2Y6CROT.js");
1785
+ return import("./vitest.workspace.template-7SONK24H.js");
1782
1786
  default:
1783
1787
  throw new Error(`Unknown template: ${name}`);
1784
1788
  }
@@ -2028,9 +2032,11 @@ async function postInstall(options) {
2028
2032
  }), findFile = (basename, extensions = EXTENSIONS) => any(
2029
2033
  extensions.map((ext) => basename + ext),
2030
2034
  { last: getProjectRoot3(), cwd: options.configDir }
2031
- ), allDeps = packageManager.getAllDependencies(), vitestVersionSpecifier = await packageManager.getInstalledVersion("vitest");
2032
- !vitestVersionSpecifier && allDeps.vitest && (vitestVersionSpecifier = allDeps.vitest), vitestVersionSpecifier = coerce(vitestVersionSpecifier)?.version ?? null, logger18.debug(`Vitest version specifier: ${vitestVersionSpecifier}`);
2033
- let isVitest3_2To4 = vitestVersionSpecifier ? satisfies(vitestVersionSpecifier, ">=3.2.0 <4.0.0") : !1, isVitest4OrNewer = vitestVersionSpecifier ? satisfies(vitestVersionSpecifier, ">=4.0.0") : !0, info = await getStorybookInfo(options.configDir, void 0, { skipCache: !0 }), addonVitestService = new AddonVitestService2(packageManager), compatibilityResult = await addonVitestService.validateCompatibility({
2035
+ ), allDeps = packageManager.getAllDependencies(), addonVitestService = new AddonVitestService2(packageManager), vitestVersionSpecifier = AddonVitestService2.getComparableVersion(
2036
+ await packageManager.getDeclaredVersionSpecifier("vitest")
2037
+ );
2038
+ logger18.debug(`Vitest version specifier: ${vitestVersionSpecifier}`);
2039
+ let isVitest3_2To4 = vitestVersionSpecifier ? satisfies(vitestVersionSpecifier, ">=3.2.0 <4.0.0") : !1, isVitest4OrNewer = vitestVersionSpecifier ? satisfies(vitestVersionSpecifier, ">=4.0.0") : !0, info = await getStorybookInfo(options.configDir, void 0, { skipCache: !0 }), compatibilityResult = await addonVitestService.validateCompatibility({
2034
2040
  framework: info.framework,
2035
2041
  builder: info.builder
2036
2042
  }), result = null;
@@ -2363,7 +2369,7 @@ var ADDON_INSTALLATION_INSTRUCTIONS = {
2363
2369
  }
2364
2370
  /** Configure test addons (a11y and vitest) */
2365
2371
  async configureAddons(configDir, addons) {
2366
- let { postinstallAddon } = await import("./postinstallAddon-FHBILAA2.js"), task = prompt6.taskLog({
2372
+ let { postinstallAddon } = await import("./postinstallAddon-LAQGH4PL.js"), task = prompt6.taskLog({
2367
2373
  id: "configure-addons",
2368
2374
  title: "Configuring addons..."
2369
2375
  }), addonResults = /* @__PURE__ */ new Map();
@@ -2443,7 +2449,11 @@ var DependencyInstallationCommand = class {
2443
2449
  }
2444
2450
  return { status: "success" };
2445
2451
  }
2446
- /** Collect addon dependencies without installing them */
2452
+ /**
2453
+ * Collect addon dependencies (the caller adds them to package.json and installs them afterwards).
2454
+ * For pnpm catalog workspaces this also registers the derived entries in pnpm-workspace.yaml so
2455
+ * the subsequent install can resolve their `catalog:` specifiers.
2456
+ */
2447
2457
  async collectAddonDependencies(selectedFeatures) {
2448
2458
  try {
2449
2459
  if (selectedFeatures.has(Feature5.TEST)) {
@@ -2497,12 +2507,14 @@ ${linesToAdd}
2497
2507
  } catch {
2498
2508
  }
2499
2509
  }
2500
- /** Print success message with feature summary */
2510
+ getAiSetupPromptText() {
2511
+ return `Run \`${this.options.aiSetupCommand}\` and follow its instructions precisely.`;
2512
+ }
2501
2513
  printSuccessMessage(storybookCommand) {
2502
2514
  this.options.showAgentFollowUp ? logger11.step(
2503
2515
  CLI_COLORS4.storybook(
2504
2516
  import_ts_dedent10.dedent`Storybook is installed but is not entirely set up yet.
2505
- To finish setting up, now run \`npx storybook ai setup\` and follow its instructions precisely.`
2517
+ To finish setting up, now run \`${this.options.aiSetupCommand}\` and follow its instructions precisely.`
2506
2518
  )
2507
2519
  ) : logger11.step(CLI_COLORS4.success("Storybook was successfully installed in your project!")), this.printNextSteps(storybookCommand);
2508
2520
  }
@@ -2514,17 +2526,21 @@ ${linesToAdd}
2514
2526
  Having trouble or want to chat? ${CLI_COLORS4.cta("https://discord.gg/storybook/")}
2515
2527
  `), this.options.showAiInstructions && logger11.step(import_ts_dedent10.dedent`To finalize setting up with AI, paste this prompt to your AI agent:
2516
2528
 
2517
- ${CLI_COLORS4.storybook("Run `npx storybook ai setup` and follow its instructions precisely.")}
2529
+ ${CLI_COLORS4.storybook(this.getAiSetupPromptText())}
2518
2530
  `);
2519
2531
  }
2520
2532
  }, executeFinalization = ({
2521
2533
  logfile,
2522
2534
  showAgentFollowUp,
2523
2535
  showAiInstructions,
2536
+ aiSetupCommand,
2524
2537
  ...params
2525
- }) => new FinalizationCommand({ logfile, showAgentFollowUp, showAiInstructions }).execute(
2526
- params
2527
- );
2538
+ }) => new FinalizationCommand({
2539
+ logfile,
2540
+ showAgentFollowUp,
2541
+ showAiInstructions,
2542
+ aiSetupCommand
2543
+ }).execute(params);
2528
2544
 
2529
2545
  // src/dependency-collector.ts
2530
2546
  var DependencyCollector = class {
@@ -3731,7 +3747,8 @@ async function doInitiate(options) {
3731
3747
  showAgentFollowUp: !!options.agent && hasAiFeature,
3732
3748
  showAiInstructions: hasAiFeature,
3733
3749
  logfile: options.logfile,
3734
- storybookCommand
3750
+ storybookCommand,
3751
+ aiSetupCommand: packageManager.getPackageCommand(["storybook", "ai", "setup"])
3735
3752
  }), await telemetryService.trackInitWithContext(projectType, selectedFeatures, newUser), selectedFeatures.has(Feature7.ONBOARDING) && await cache.set("onboarding-pending", !0).catch(() => {
3736
3753
  }), {
3737
3754
  shouldRunDev: !!options.dev && !options.skipInstall && shouldRunDev !== !1 && dependencyInstallationResult.status === "success",
@@ -1,20 +1,22 @@
1
- import CJS_COMPAT_NODE_URL_x0oejp749q from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x0oejp749q from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x0oejp749q from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ahgotaj50fn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ahgotaj50fn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ahgotaj50fn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x0oejp749q.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x0oejp749q.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x0oejp749q.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ahgotaj50fn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ahgotaj50fn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ahgotaj50fn.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-CQDFGDU3.js";
13
- import "./chunk-XDSFK2SZ.js";
12
+ import "./chunk-MJZ7DWDA.js";
13
+ import "./chunk-QT5YZBEG.js";
14
14
 
15
15
  // ../cli-storybook/src/postinstallAddon.ts
16
+ import { spawnSync } from "node:child_process";
16
17
  import { createRequire as createRequire2 } from "node:module";
17
- import { fileURLToPath as fileURLToPath2 } from "node:url";
18
+ import { join as join2 } from "node:path";
19
+ import { fileURLToPath as fileURLToPath2, pathToFileURL as pathToFileURL2 } from "node:url";
18
20
 
19
21
  // ../../core/src/shared/utils/module.ts
20
22
  import { createRequire, register } from "node:module";
@@ -171,24 +173,39 @@ async function importModule(path, { skipCache = !1 } = {}) {
171
173
  }
172
174
 
173
175
  // ../cli-storybook/src/postinstallAddon.ts
174
- var DIR_CWD = process.cwd(), require2 = createRequire2(DIR_CWD), postinstallAddon = async (addonName, options) => {
175
- let hookPath = `${addonName}/postinstall`, modulePath;
176
+ var DIR_CWD = process.cwd(), require2 = createRequire2(join2(DIR_CWD, "package.json")), postinstallAddon = async (addonName, options) => {
177
+ let hookPath = `${addonName}/postinstall`, logger = options.logger, modulePath;
176
178
  try {
177
- modulePath = import.meta.resolve(hookPath, DIR_CWD);
179
+ modulePath = require2.resolve(hookPath, { paths: [DIR_CWD] });
178
180
  } catch {
181
+ let result = spawnSync(
182
+ process.execPath,
183
+ ["-p", `require.resolve(${JSON.stringify(hookPath)}, { paths: [process.cwd()] })`],
184
+ { cwd: DIR_CWD, encoding: "utf8", timeout: 3e4 }
185
+ );
186
+ result.status === 0 && result.stdout.trim() && (modulePath = result.stdout.trim());
187
+ }
188
+ if (!modulePath)
179
189
  try {
180
- modulePath = require2.resolve(hookPath, { paths: [DIR_CWD] });
190
+ modulePath = import.meta.resolve(hookPath);
181
191
  } catch {
192
+ logger.warn(
193
+ `Could not resolve the postinstall hook of ${addonName}, skipping its configuration. Run \`npx storybook add ${addonName}\` to set it up manually.`
194
+ );
182
195
  return;
183
196
  }
184
- }
185
- let moduledLoaded;
197
+ let moduleFilePath = modulePath.startsWith("file:") ? fileURLToPath2(modulePath) : modulePath, moduledLoaded;
186
198
  try {
187
- moduledLoaded = await import(hookPath).catch(() => importModule(hookPath)).catch(() => importModule(modulePath)).catch(() => importModule(fileURLToPath2(modulePath))).catch(() => require2(hookPath)).catch(() => require2(modulePath)).catch(() => require2(fileURLToPath2(modulePath)));
188
- } catch {
199
+ moduledLoaded = await import(pathToFileURL2(moduleFilePath).href).catch(() => importModule(moduleFilePath)).catch(() => require2(moduleFilePath)).catch(() => import(hookPath)).catch(() => importModule(hookPath)).catch(() => require2(hookPath));
200
+ } catch (e) {
201
+ logger.warn(
202
+ `Could not load the postinstall hook of ${addonName} (${String(
203
+ e
204
+ )}), skipping its configuration. Run \`npx storybook add ${addonName}\` to set it up manually.`
205
+ );
189
206
  return;
190
207
  }
191
- let postinstall = moduledLoaded?.default || moduledLoaded?.postinstall || moduledLoaded, logger = options.logger;
208
+ let postinstall = moduledLoaded?.default || moduledLoaded?.postinstall || moduledLoaded;
192
209
  if (!postinstall || typeof postinstall != "function") {
193
210
  logger.error(`Error finding postinstall function for ${addonName}`);
194
211
  return;
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_x0oejp749q from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x0oejp749q from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x0oejp749q from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ahgotaj50fn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ahgotaj50fn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ahgotaj50fn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x0oejp749q.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x0oejp749q.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x0oejp749q.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ahgotaj50fn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ahgotaj50fn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ahgotaj50fn.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
  initiate
14
- } from "./chunk-AXFQNBOF.js";
15
- import "./chunk-CQDFGDU3.js";
14
+ } from "./chunk-VJJQPIQC.js";
15
+ import "./chunk-MJZ7DWDA.js";
16
16
  import {
17
17
  __commonJS,
18
18
  __require,
19
19
  __toESM
20
- } from "./chunk-XDSFK2SZ.js";
20
+ } from "./chunk-QT5YZBEG.js";
21
21
 
22
22
  // ../../../node_modules/commander/lib/error.js
23
23
  var require_error = __commonJS({
@@ -2620,7 +2620,7 @@ var import_index = __toESM(require_commander(), 1), {
2620
2620
  } = import_index.default;
2621
2621
 
2622
2622
  // package.json
2623
- var version = "10.5.0-beta.2";
2623
+ var version = "10.5.0";
2624
2624
 
2625
2625
  // ../../../node_modules/std-env/dist/index.mjs
2626
2626
  var e = globalThis.process?.env || /* @__PURE__ */ Object.create(null), t = globalThis.process || { env: e }, n = t !== void 0 && t.env && t.env.NODE_ENV || void 0, r = [["claude", ["CLAUDECODE", "CLAUDE_CODE"]], ["replit", ["REPL_ID"]], ["gemini", ["GEMINI_CLI"]], ["codex", ["CODEX_SANDBOX", "CODEX_THREAD_ID"]], ["opencode", ["OPENCODE"]], ["pi", [i("PATH", /\.pi[\\/]agent/)]], ["auggie", ["AUGMENT_AGENT"]], ["goose", ["GOOSE_PROVIDER"]], ["devin", [i("EDITOR", /devin/)]], ["cursor", ["CURSOR_AGENT"]], ["kiro", [i("TERM_PROGRAM", /kiro/)]]];
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_x0oejp749q from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x0oejp749q from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x0oejp749q from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ahgotaj50fn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ahgotaj50fn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ahgotaj50fn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x0oejp749q.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x0oejp749q.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x0oejp749q.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ahgotaj50fn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ahgotaj50fn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ahgotaj50fn.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-XDSFK2SZ.js";
12
+ import "./chunk-QT5YZBEG.js";
13
13
 
14
14
  // raw:../templates/vitest.config.3.2.template.ts
15
15
  var vitest_config_3_2_template_default = `import path from 'node:path';
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_x0oejp749q from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x0oejp749q from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x0oejp749q from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ahgotaj50fn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ahgotaj50fn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ahgotaj50fn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x0oejp749q.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x0oejp749q.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x0oejp749q.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ahgotaj50fn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ahgotaj50fn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ahgotaj50fn.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-XDSFK2SZ.js";
12
+ import "./chunk-QT5YZBEG.js";
13
13
 
14
14
  // raw:../templates/vitest.config.4.template.ts
15
15
  var vitest_config_4_template_default = `import path from 'node:path';
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_x0oejp749q from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x0oejp749q from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x0oejp749q from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ahgotaj50fn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ahgotaj50fn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ahgotaj50fn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x0oejp749q.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x0oejp749q.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x0oejp749q.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ahgotaj50fn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ahgotaj50fn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ahgotaj50fn.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-XDSFK2SZ.js";
12
+ import "./chunk-QT5YZBEG.js";
13
13
 
14
14
  // raw:../templates/vitest.config.template.ts
15
15
  var vitest_config_template_default = `import path from 'node:path';
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_x0oejp749q from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x0oejp749q from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x0oejp749q from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ahgotaj50fn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ahgotaj50fn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ahgotaj50fn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x0oejp749q.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x0oejp749q.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x0oejp749q.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ahgotaj50fn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ahgotaj50fn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ahgotaj50fn.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-XDSFK2SZ.js";
12
+ import "./chunk-QT5YZBEG.js";
13
13
 
14
14
  // raw:../templates/vitest.workspace.template.ts
15
15
  var vitest_workspace_template_default = `import path from 'node:path';
package/dist/bin/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import CJS_COMPAT_NODE_URL_x0oejp749q from 'node:url';
3
- import CJS_COMPAT_NODE_PATH_x0oejp749q from 'node:path';
4
- import CJS_COMPAT_NODE_MODULE_x0oejp749q from "node:module";
2
+ import CJS_COMPAT_NODE_URL_ahgotaj50fn from 'node:url';
3
+ import CJS_COMPAT_NODE_PATH_ahgotaj50fn from 'node:path';
4
+ import CJS_COMPAT_NODE_MODULE_ahgotaj50fn from "node:module";
5
5
 
6
- var __filename = CJS_COMPAT_NODE_URL_x0oejp749q.fileURLToPath(import.meta.url);
7
- var __dirname = CJS_COMPAT_NODE_PATH_x0oejp749q.dirname(__filename);
8
- var require = CJS_COMPAT_NODE_MODULE_x0oejp749q.createRequire(import.meta.url);
6
+ var __filename = CJS_COMPAT_NODE_URL_ahgotaj50fn.fileURLToPath(import.meta.url);
7
+ var __dirname = CJS_COMPAT_NODE_PATH_ahgotaj50fn.dirname(__filename);
8
+ var require = CJS_COMPAT_NODE_MODULE_ahgotaj50fn.createRequire(import.meta.url);
9
9
 
10
10
  // ------------------------------------------------------------
11
11
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -20,4 +20,4 @@ if (!isNodeVersionSupported(major, minor, patch)) {
20
20
  You are currently running Node.js ${process.version}.`
21
21
  ), logger.outro(""), process.exit(1);
22
22
  }
23
- await import("../_node-chunks/run-FKGHVKJ7.js");
23
+ await import("../_node-chunks/run-7ZAWWBC6.js");
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
- import CJS_COMPAT_NODE_URL_x0oejp749q from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x0oejp749q from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x0oejp749q from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ahgotaj50fn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ahgotaj50fn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ahgotaj50fn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x0oejp749q.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x0oejp749q.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x0oejp749q.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ahgotaj50fn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ahgotaj50fn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ahgotaj50fn.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
  doInitiate
14
- } from "./_node-chunks/chunk-AXFQNBOF.js";
15
- import "./_node-chunks/chunk-CQDFGDU3.js";
16
- import "./_node-chunks/chunk-XDSFK2SZ.js";
14
+ } from "./_node-chunks/chunk-VJJQPIQC.js";
15
+ import "./_node-chunks/chunk-MJZ7DWDA.js";
16
+ import "./_node-chunks/chunk-QT5YZBEG.js";
17
17
  export {
18
18
  doInitiate as initiate
19
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-storybook",
3
- "version": "10.5.0-beta.2",
3
+ "version": "10.5.0",
4
4
  "description": "Storybook installer: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -39,7 +39,7 @@
39
39
  ],
40
40
  "dependencies": {
41
41
  "semver": "^7.7.3",
42
- "storybook": "10.5.0-beta.2"
42
+ "storybook": "10.5.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/prompts": "^2.0.9",