create-storybook 10.0.0-beta.1 → 10.0.0-beta.3

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_hzp3snl9xm9 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_hzp3snl9xm9 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_hzp3snl9xm9 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_y2esa1hqt4p from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_y2esa1hqt4p from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_y2esa1hqt4p from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_hzp3snl9xm9.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_hzp3snl9xm9.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_hzp3snl9xm9.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_y2esa1hqt4p.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_y2esa1hqt4p.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_y2esa1hqt4p.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_hzp3snl9xm9 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_hzp3snl9xm9 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_hzp3snl9xm9 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_y2esa1hqt4p from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_y2esa1hqt4p from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_y2esa1hqt4p from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_hzp3snl9xm9.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_hzp3snl9xm9.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_hzp3snl9xm9.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_y2esa1hqt4p.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_y2esa1hqt4p.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_y2esa1hqt4p.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -15,7 +15,7 @@ import {
15
15
  __require,
16
16
  __toESM,
17
17
  require_dist
18
- } from "./chunk-T3MAYGYW.js";
18
+ } from "./chunk-MPGA5HZK.js";
19
19
 
20
20
  // ../../node_modules/eastasianwidth/eastasianwidth.js
21
21
  var require_eastasianwidth = __commonJS({
@@ -6575,7 +6575,7 @@ var require_has_flag = __commonJS({
6575
6575
  var require_supports_color = __commonJS({
6576
6576
  "../../node_modules/supports-color/index.js"(exports, module) {
6577
6577
  "use strict";
6578
- var os2 = __require("os");
6578
+ var os3 = __require("os");
6579
6579
  var tty2 = __require("tty");
6580
6580
  var hasFlag2 = require_has_flag();
6581
6581
  var { env: env2 } = process;
@@ -6624,7 +6624,7 @@ var require_supports_color = __commonJS({
6624
6624
  return min;
6625
6625
  }
6626
6626
  if (process.platform === "win32") {
6627
- const osRelease = os2.release().split(".");
6627
+ const osRelease = os3.release().split(".");
6628
6628
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
6629
6629
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
6630
6630
  }
@@ -7312,9 +7312,9 @@ var require_cli_cursor = __commonJS({
7312
7312
  }
7313
7313
  });
7314
7314
 
7315
- // ../../node_modules/ora/node_modules/cli-spinners/spinners.json
7315
+ // ../../node_modules/cli-spinners/spinners.json
7316
7316
  var require_spinners = __commonJS({
7317
- "../../node_modules/ora/node_modules/cli-spinners/spinners.json"(exports, module) {
7317
+ "../../node_modules/cli-spinners/spinners.json"(exports, module) {
7318
7318
  module.exports = {
7319
7319
  dots: {
7320
7320
  interval: 80,
@@ -8940,9 +8940,9 @@ var require_spinners = __commonJS({
8940
8940
  }
8941
8941
  });
8942
8942
 
8943
- // ../../node_modules/ora/node_modules/cli-spinners/index.js
8943
+ // ../../node_modules/cli-spinners/index.js
8944
8944
  var require_cli_spinners = __commonJS({
8945
- "../../node_modules/ora/node_modules/cli-spinners/index.js"(exports, module) {
8945
+ "../../node_modules/cli-spinners/index.js"(exports, module) {
8946
8946
  "use strict";
8947
8947
  var spinners = Object.assign({}, require_spinners());
8948
8948
  var spinnersList = Object.keys(spinners);
@@ -14056,7 +14056,7 @@ var require_stdio = __commonJS({
14056
14056
  var require_kill = __commonJS({
14057
14057
  "node_modules/execa/lib/kill.js"(exports, module) {
14058
14058
  "use strict";
14059
- var os2 = __require("os");
14059
+ var os3 = __require("os");
14060
14060
  var onExit = require_signal_exit();
14061
14061
  var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
14062
14062
  var spawnedKill = /* @__PURE__ */ __name((kill, signal = "SIGTERM", options = {}) => {
@@ -14080,7 +14080,7 @@ var require_kill = __commonJS({
14080
14080
  return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
14081
14081
  }, "shouldForceKill");
14082
14082
  var isSigterm = /* @__PURE__ */ __name((signal) => {
14083
- return signal === os2.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
14083
+ return signal === os3.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
14084
14084
  }, "isSigterm");
14085
14085
  var getForceKillAfterTimeout = /* @__PURE__ */ __name(({ forceKillAfterTimeout = true }) => {
14086
14086
  if (forceKillAfterTimeout === true) {
@@ -14694,7 +14694,7 @@ var require_execa = __commonJS({
14694
14694
  });
14695
14695
 
14696
14696
  // src/initiate.ts
14697
- import { execSync } from "node:child_process";
14697
+ import { execSync as execSync3 } from "node:child_process";
14698
14698
  import fs3 from "node:fs/promises";
14699
14699
  import * as babel2 from "storybook/internal/babel";
14700
14700
  import {
@@ -16313,6 +16313,134 @@ __name(findUp, "findUp");
16313
16313
 
16314
16314
  // src/initiate.ts
16315
16315
  var import_picocolors2 = __toESM(require_picocolors(), 1);
16316
+
16317
+ // ../../node_modules/process-ancestry/dist/index.js
16318
+ import os2 from "os";
16319
+ import { execSync } from "child_process";
16320
+ import { execSync as execSync2 } from "child_process";
16321
+ function getProcessInfo(pid) {
16322
+ try {
16323
+ const output = execSync(`ps -p ${pid} -o pid=,ppid=,command=`, {
16324
+ encoding: "utf8",
16325
+ timeout: 5e3
16326
+ // 5 second timeout
16327
+ }).trim();
16328
+ if (!output) {
16329
+ return null;
16330
+ }
16331
+ const [pidStr, ppidStr, ...commandParts] = output.split(/\s+/);
16332
+ const parsedPid = pidStr ? parseInt(pidStr, 10) : NaN;
16333
+ const parsedPpid = ppidStr ? parseInt(ppidStr, 10) : NaN;
16334
+ if (isNaN(parsedPid) || isNaN(parsedPpid)) {
16335
+ return null;
16336
+ }
16337
+ return {
16338
+ pid: parsedPid,
16339
+ ppid: parsedPpid,
16340
+ command: commandParts.join(" ") || void 0
16341
+ };
16342
+ } catch (error) {
16343
+ if (error instanceof Error && error.message.includes("timeout")) {
16344
+ console.warn(`Process lookup timed out for PID ${pid}`);
16345
+ }
16346
+ return null;
16347
+ }
16348
+ }
16349
+ __name(getProcessInfo, "getProcessInfo");
16350
+ function getAncestryUnix(startPid) {
16351
+ const result = [];
16352
+ const visited = /* @__PURE__ */ new Set();
16353
+ let currentPid = startPid;
16354
+ let maxDepth = 1e3;
16355
+ while (currentPid && maxDepth > 0) {
16356
+ if (visited.has(currentPid)) {
16357
+ console.warn(`Detected cycle in process tree at PID ${currentPid}`);
16358
+ break;
16359
+ }
16360
+ visited.add(currentPid);
16361
+ const info = getProcessInfo(currentPid);
16362
+ if (!info || info.ppid === 0 || info.ppid === 1) break;
16363
+ result.push(info);
16364
+ currentPid = info.ppid;
16365
+ maxDepth--;
16366
+ }
16367
+ if (maxDepth === 0) {
16368
+ console.warn(`Reached maximum depth limit while traversing process tree from PID ${startPid}`);
16369
+ }
16370
+ return result;
16371
+ }
16372
+ __name(getAncestryUnix, "getAncestryUnix");
16373
+ function getProcessInfo2(pid) {
16374
+ try {
16375
+ const output = execSync2(
16376
+ `wmic process where (ProcessId=${pid}) get ProcessId,ParentProcessId,CommandLine /format:csv`,
16377
+ {
16378
+ encoding: "utf8",
16379
+ timeout: 1e4
16380
+ // 10 second timeout (wmic can be slower)
16381
+ }
16382
+ );
16383
+ if (!output) {
16384
+ return null;
16385
+ }
16386
+ const lines = output.split("\n").filter((line) => line.trim() && !line.startsWith("Node"));
16387
+ const fields = lines.pop()?.split(",");
16388
+ if (!fields || fields.length < 4) return null;
16389
+ const [_node, commandLine, parentPid, thisPid] = fields;
16390
+ const parsedPid = thisPid ? parseInt(thisPid.trim(), 10) : NaN;
16391
+ const parsedPpid = parentPid ? parseInt(parentPid.trim(), 10) : NaN;
16392
+ if (isNaN(parsedPid) || isNaN(parsedPpid)) {
16393
+ return null;
16394
+ }
16395
+ return {
16396
+ pid: parsedPid,
16397
+ ppid: parsedPpid,
16398
+ command: commandLine?.trim() || void 0
16399
+ };
16400
+ } catch (error) {
16401
+ if (error instanceof Error && error.message.includes("timeout")) {
16402
+ console.warn(`Process lookup timed out for PID ${pid}`);
16403
+ }
16404
+ return null;
16405
+ }
16406
+ }
16407
+ __name(getProcessInfo2, "getProcessInfo2");
16408
+ function getAncestryWindows(startPid) {
16409
+ const result = [];
16410
+ const visited = /* @__PURE__ */ new Set();
16411
+ let currentPid = startPid;
16412
+ let maxDepth = 1e3;
16413
+ while (currentPid && maxDepth > 0) {
16414
+ if (visited.has(currentPid)) {
16415
+ console.warn(`Detected cycle in process tree at PID ${currentPid}`);
16416
+ break;
16417
+ }
16418
+ visited.add(currentPid);
16419
+ const info = getProcessInfo2(currentPid);
16420
+ if (!info || info.ppid === 0 || info.ppid === 4) break;
16421
+ result.push(info);
16422
+ currentPid = info.ppid;
16423
+ maxDepth--;
16424
+ }
16425
+ if (maxDepth === 0) {
16426
+ console.warn(`Reached maximum depth limit while traversing process tree from PID ${startPid}`);
16427
+ }
16428
+ return result;
16429
+ }
16430
+ __name(getAncestryWindows, "getAncestryWindows");
16431
+ function getProcessAncestry(pid = process.pid) {
16432
+ if (typeof pid !== "number" || !Number.isInteger(pid) || pid <= 0) {
16433
+ throw new Error("PID must be a positive integer");
16434
+ }
16435
+ if (os2.platform() === "win32") {
16436
+ return getAncestryWindows(pid);
16437
+ } else {
16438
+ return getAncestryUnix(pid);
16439
+ }
16440
+ }
16441
+ __name(getProcessAncestry, "getProcessAncestry");
16442
+
16443
+ // src/initiate.ts
16316
16444
  var import_prompts2 = __toESM(require_prompts3(), 1);
16317
16445
  var import_ts_dedent5 = __toESM(require_dist(), 1);
16318
16446
  import { lt, prerelease } from "semver";
@@ -17752,6 +17880,26 @@ var promptInstallType = /* @__PURE__ */ __name(async ({
17752
17880
  }
17753
17881
  return installType;
17754
17882
  }, "promptInstallType");
17883
+ function getStorybookVersionFromAncestry(ancestry) {
17884
+ for (const ancestor of ancestry.toReversed()) {
17885
+ const match = ancestor.command?.match(/\s(?:create-storybook|storybook)@([^\s]+)/);
17886
+ if (match) {
17887
+ return match[1];
17888
+ }
17889
+ }
17890
+ return void 0;
17891
+ }
17892
+ __name(getStorybookVersionFromAncestry, "getStorybookVersionFromAncestry");
17893
+ function getCliIntegrationFromAncestry(ancestry) {
17894
+ for (const ancestor of ancestry.toReversed()) {
17895
+ const match = ancestor.command?.match(/\s(sv(@[^ ]+)? create|sv(@[^ ]+)? add)/i);
17896
+ if (match) {
17897
+ return match[1].includes("add") ? "sv add" : "sv create";
17898
+ }
17899
+ }
17900
+ return void 0;
17901
+ }
17902
+ __name(getCliIntegrationFromAncestry, "getCliIntegrationFromAncestry");
17755
17903
  async function doInitiate(options) {
17756
17904
  const { packageManager: pkgMgr } = options;
17757
17905
  const isEmptyDirProject = options.force !== true && currentDirectoryIsEmpty();
@@ -17774,6 +17922,14 @@ async function doInitiate(options) {
17774
17922
  const isPrerelease = prerelease(currentVersion);
17775
17923
  const isOutdated = lt(currentVersion, latestVersion);
17776
17924
  const borderColor = isOutdated ? "#FC521F" : "#F1618C";
17925
+ let versionSpecifier = void 0;
17926
+ let cliIntegration = void 0;
17927
+ try {
17928
+ const ancestry = getProcessAncestry();
17929
+ versionSpecifier = getStorybookVersionFromAncestry(ancestry);
17930
+ cliIntegration = getCliIntegrationFromAncestry(ancestry);
17931
+ } catch (err) {
17932
+ }
17777
17933
  const messages = {
17778
17934
  welcome: `Adding Storybook version ${import_picocolors2.default.bold(currentVersion)} to your project..`,
17779
17935
  notLatest: import_picocolors2.default.red(import_ts_dedent5.dedent`
@@ -17950,7 +18106,13 @@ The project types currently supported by Storybook are:
17950
18106
  await packageManager.installDependencies();
17951
18107
  }
17952
18108
  if (!options.disableTelemetry) {
17953
- await telemetry2("init", { projectType, features: telemetryFeatures, newUser });
18109
+ await telemetry2("init", {
18110
+ projectType,
18111
+ features: telemetryFeatures,
18112
+ newUser,
18113
+ versionSpecifier,
18114
+ cliIntegration
18115
+ });
17954
18116
  }
17955
18117
  if ([ProjectType2.REACT_NATIVE, ProjectType2.REACT_NATIVE_AND_RNW].includes(projectType)) {
17956
18118
  logger4.log(import_ts_dedent5.dedent`
@@ -18008,14 +18170,14 @@ ${linesToAdd}
18008
18170
  logger4.log(
18009
18171
  `> npx storybook@${versions2.storybook} add ${flags} @storybook/addon-a11y@${versions2["@storybook/addon-a11y"]}`
18010
18172
  );
18011
- execSync(
18173
+ execSync3(
18012
18174
  `npx storybook@${versions2.storybook} add ${flags} @storybook/addon-a11y@${versions2["@storybook/addon-a11y"]}`,
18013
18175
  { cwd: process.cwd(), stdio: "inherit" }
18014
18176
  );
18015
18177
  logger4.log(
18016
18178
  `> npx storybook@${versions2.storybook} add ${flags} @storybook/addon-vitest@${versions2["@storybook/addon-vitest"]}`
18017
18179
  );
18018
- execSync(
18180
+ execSync3(
18019
18181
  `npx storybook@${versions2.storybook} add ${flags} @storybook/addon-vitest@${versions2["@storybook/addon-vitest"]}`,
18020
18182
  { cwd: process.cwd(), stdio: "inherit" }
18021
18183
  );
@@ -18048,7 +18210,49 @@ ${linesToAdd}
18048
18210
  };
18049
18211
  }
18050
18212
  __name(doInitiate, "doInitiate");
18213
+ async function initiate(options) {
18214
+ const initiateResult = await withTelemetry(
18215
+ "init",
18216
+ {
18217
+ cliOptions: options,
18218
+ printError: /* @__PURE__ */ __name((err) => !err.handled && logger4.error(err), "printError")
18219
+ },
18220
+ () => doInitiate(options)
18221
+ );
18222
+ if (initiateResult?.shouldRunDev) {
18223
+ const { projectType, packageManager, storybookCommand } = initiateResult;
18224
+ logger4.log("\nRunning Storybook");
18225
+ try {
18226
+ const supportsOnboarding = [
18227
+ ProjectType2.REACT_SCRIPTS,
18228
+ ProjectType2.REACT,
18229
+ ProjectType2.WEBPACK_REACT,
18230
+ ProjectType2.REACT_PROJECT,
18231
+ ProjectType2.NEXTJS,
18232
+ ProjectType2.VUE3,
18233
+ ProjectType2.ANGULAR
18234
+ ].includes(projectType);
18235
+ const flags = [];
18236
+ if (packageManager.type === "npm" && projectType !== ProjectType2.ANGULAR) {
18237
+ flags.push("--");
18238
+ }
18239
+ if (supportsOnboarding && initiateResult.shouldOnboard) {
18240
+ flags.push("--initial-path=/onboarding");
18241
+ }
18242
+ flags.push("--quiet");
18243
+ packageManager.runPackageCommandSync(
18244
+ storybookCommand.replace(/^yarn /, ""),
18245
+ flags,
18246
+ void 0,
18247
+ "inherit"
18248
+ );
18249
+ } catch (e) {
18250
+ }
18251
+ }
18252
+ }
18253
+ __name(initiate, "initiate");
18051
18254
 
18052
18255
  export {
18053
- doInitiate
18256
+ doInitiate,
18257
+ initiate
18054
18258
  };
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_hzp3snl9xm9 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_hzp3snl9xm9 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_hzp3snl9xm9 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_y2esa1hqt4p from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_y2esa1hqt4p from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_y2esa1hqt4p from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_hzp3snl9xm9.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_hzp3snl9xm9.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_hzp3snl9xm9.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_y2esa1hqt4p.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_y2esa1hqt4p.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_y2esa1hqt4p.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
- doInitiate
14
- } from "./chunk-W6DMVTOY.js";
13
+ initiate
14
+ } from "./chunk-VZAEKQJF.js";
15
15
  import {
16
16
  __commonJS,
17
17
  __name,
18
18
  __require,
19
19
  __toESM
20
- } from "./chunk-T3MAYGYW.js";
20
+ } from "./chunk-MPGA5HZK.js";
21
21
 
22
22
  // ../../node_modules/commander/lib/error.js
23
23
  var require_error = __commonJS({
@@ -3065,7 +3065,7 @@ var {
3065
3065
  } = import_index.default;
3066
3066
 
3067
3067
  // package.json
3068
- var version = "10.0.0-beta.1";
3068
+ var version = "10.0.0-beta.3";
3069
3069
 
3070
3070
  // src/bin/run.ts
3071
3071
  addToGlobalContext("cliVersion", version);
@@ -3087,5 +3087,5 @@ createStorybookProgram.action(async (options) => {
3087
3087
  const isNeitherCiNorSandbox = !isCI() && !optionalEnvToBoolean(process.env.IN_STORYBOOK_SANDBOX);
3088
3088
  options.debug = options.debug ?? false;
3089
3089
  options.dev = options.dev ?? isNeitherCiNorSandbox;
3090
- await doInitiate(options).catch(() => process.exit(1));
3090
+ await initiate(options).catch(() => process.exit(1));
3091
3091
  }).version(String(version)).parse(process.argv);
package/dist/bin/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import CJS_COMPAT_NODE_URL_hzp3snl9xm9 from 'node:url';
3
- import CJS_COMPAT_NODE_PATH_hzp3snl9xm9 from 'node:path';
4
- import CJS_COMPAT_NODE_MODULE_hzp3snl9xm9 from "node:module";
2
+ import CJS_COMPAT_NODE_URL_y2esa1hqt4p from 'node:url';
3
+ import CJS_COMPAT_NODE_PATH_y2esa1hqt4p from 'node:path';
4
+ import CJS_COMPAT_NODE_MODULE_y2esa1hqt4p from "node:module";
5
5
 
6
- var __filename = CJS_COMPAT_NODE_URL_hzp3snl9xm9.fileURLToPath(import.meta.url);
7
- var __dirname = CJS_COMPAT_NODE_PATH_hzp3snl9xm9.dirname(__filename);
8
- var require = CJS_COMPAT_NODE_MODULE_hzp3snl9xm9.createRequire(import.meta.url);
6
+ var __filename = CJS_COMPAT_NODE_URL_y2esa1hqt4p.fileURLToPath(import.meta.url);
7
+ var __dirname = CJS_COMPAT_NODE_PATH_y2esa1hqt4p.dirname(__filename);
8
+ var require = CJS_COMPAT_NODE_MODULE_y2esa1hqt4p.createRequire(import.meta.url);
9
9
 
10
10
  // ------------------------------------------------------------
11
11
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,7 +13,7 @@ var require = CJS_COMPAT_NODE_MODULE_hzp3snl9xm9.createRequire(import.meta.url);
13
13
  import {
14
14
  __toESM,
15
15
  require_dist
16
- } from "../_node-chunks/chunk-T3MAYGYW.js";
16
+ } from "../_node-chunks/chunk-MPGA5HZK.js";
17
17
 
18
18
  // src/bin/index.ts
19
19
  var import_ts_dedent = __toESM(require_dist(), 1);
@@ -26,4 +26,4 @@ if (majorNodeVersion < 20 || majorNodeVersion === 20 && minorNodeVersion < 19 ||
26
26
  );
27
27
  process.exit(1);
28
28
  }
29
- import("../_node-chunks/run-5P25MPU4.js");
29
+ import("../_node-chunks/run-BRIF6DIN.js");
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- import CJS_COMPAT_NODE_URL_hzp3snl9xm9 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_hzp3snl9xm9 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_hzp3snl9xm9 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_y2esa1hqt4p from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_y2esa1hqt4p from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_y2esa1hqt4p from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_hzp3snl9xm9.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_hzp3snl9xm9.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_hzp3snl9xm9.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_y2esa1hqt4p.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_y2esa1hqt4p.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_y2esa1hqt4p.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-W6DMVTOY.js";
15
- import "./_node-chunks/chunk-T3MAYGYW.js";
14
+ } from "./_node-chunks/chunk-VZAEKQJF.js";
15
+ import "./_node-chunks/chunk-MPGA5HZK.js";
16
16
  export {
17
17
  doInitiate as initiate
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-storybook",
3
- "version": "10.0.0-beta.1",
3
+ "version": "10.0.0-beta.3",
4
4
  "description": "Storybook installer: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "semver": "^7.6.2",
46
- "storybook": "10.0.0-beta.1"
46
+ "storybook": "10.0.0-beta.3"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/prompts": "^2.0.9",
@@ -54,6 +54,7 @@
54
54
  "find-up": "^7.0.0",
55
55
  "ora": "^5.4.1",
56
56
  "picocolors": "^1.1.0",
57
+ "process-ancestry": "^0.0.2",
57
58
  "prompts": "^2.4.0",
58
59
  "react": "^18.2.0",
59
60
  "tiny-invariant": "^1.3.1",