create-storybook 10.4.0 → 10.4.1
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/{chunk-5TVIO6N2.js → chunk-FZATEDD4.js} +6 -6
- package/dist/_node-chunks/{chunk-ZHENRTXE.js → chunk-NG4XWDEM.js} +6 -6
- package/dist/_node-chunks/{chunk-ZCFN76NO.js → chunk-UR7I3RA2.js} +81 -30
- package/dist/_node-chunks/{postinstallAddon-3JXZPDIZ.js → postinstallAddon-2723KJAA.js} +8 -8
- package/dist/_node-chunks/{run-7RF7FDGT.js → run-LEEJO2AR.js} +10 -10
- package/dist/_node-chunks/{vitest.config.3.2.template-CFAQZM2K.js → vitest.config.3.2.template-DDODXJW5.js} +7 -7
- package/dist/_node-chunks/{vitest.config.4.template-LNMWVILY.js → vitest.config.4.template-N2QD7Q3L.js} +7 -7
- package/dist/_node-chunks/{vitest.config.template-QBNMBKGH.js → vitest.config.template-FPLWAJDU.js} +7 -7
- package/dist/_node-chunks/{vitest.workspace.template-IHH7LO3R.js → vitest.workspace.template-QZDSLGD3.js} +7 -7
- package/dist/bin/index.js +7 -7
- package/dist/index.js +9 -9
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gwdnxo3kdip from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gwdnxo3kdip from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gwdnxo3kdip from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gwdnxo3kdip.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gwdnxo3kdip.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gwdnxo3kdip.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gwdnxo3kdip from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gwdnxo3kdip from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gwdnxo3kdip from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gwdnxo3kdip.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gwdnxo3kdip.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gwdnxo3kdip.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gwdnxo3kdip from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gwdnxo3kdip from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gwdnxo3kdip from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gwdnxo3kdip.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gwdnxo3kdip.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gwdnxo3kdip.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-
|
|
17
|
+
} from "./chunk-NG4XWDEM.js";
|
|
18
18
|
import {
|
|
19
19
|
__commonJS,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FZATEDD4.js";
|
|
22
22
|
|
|
23
23
|
// ../../../node_modules/ts-dedent/dist/index.js
|
|
24
24
|
var require_dist = __commonJS({
|
|
@@ -133,7 +133,7 @@ import { ProjectType as ProjectType23 } from "storybook/internal/cli";
|
|
|
133
133
|
import {
|
|
134
134
|
PackageManagerName as PackageManagerName2,
|
|
135
135
|
cache,
|
|
136
|
-
executeCommand as
|
|
136
|
+
executeCommand as executeCommand3
|
|
137
137
|
} from "storybook/internal/common";
|
|
138
138
|
import { getServerPort, withTelemetry } from "storybook/internal/core-server";
|
|
139
139
|
import { logTracker as logTracker2, logger as logger17 } from "storybook/internal/node-logger";
|
|
@@ -395,10 +395,10 @@ var TelemetryService = class {
|
|
|
395
395
|
cliIntegration
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
|
-
async trackPromptCancel(
|
|
398
|
+
async trackPromptCancel(prompt12) {
|
|
399
399
|
await telemetry(
|
|
400
400
|
"canceled",
|
|
401
|
-
{ eventType: "init", prompt:
|
|
401
|
+
{ eventType: "init", prompt: prompt12 },
|
|
402
402
|
{ stripMetadata: !0, immediate: !0 }
|
|
403
403
|
);
|
|
404
404
|
}
|
|
@@ -783,7 +783,8 @@ var ProjectTypeService = class {
|
|
|
783
783
|
{
|
|
784
784
|
preset: ProjectType2.REACT_NATIVE,
|
|
785
785
|
dependencies: ["react-native", "react-native-scripts", "expo"],
|
|
786
|
-
|
|
786
|
+
peerDependencies: ["react-native", "react-native-scripts", "expo"],
|
|
787
|
+
matcherFunction: ({ dependencies, peerDependencies }) => (dependencies?.some(Boolean) || peerDependencies?.some(Boolean)) ?? !1
|
|
787
788
|
},
|
|
788
789
|
{
|
|
789
790
|
preset: ProjectType2.REACT_SCRIPTS,
|
|
@@ -829,7 +830,8 @@ var ProjectTypeService = class {
|
|
|
829
830
|
{
|
|
830
831
|
preset: ProjectType2.REACT,
|
|
831
832
|
dependencies: ["react"],
|
|
832
|
-
|
|
833
|
+
peerDependencies: ["react"],
|
|
834
|
+
matcherFunction: ({ dependencies, peerDependencies }) => (dependencies?.some(Boolean) || peerDependencies?.some(Boolean)) ?? !1
|
|
833
835
|
}
|
|
834
836
|
];
|
|
835
837
|
}
|
|
@@ -1526,12 +1528,15 @@ var GeneratorExecutionCommand = class {
|
|
|
1526
1528
|
projectType,
|
|
1527
1529
|
features: selectedFeatures,
|
|
1528
1530
|
dependencyCollector: this.dependencyCollector
|
|
1529
|
-
}
|
|
1531
|
+
}, postInstall2 = generatorModule.postInstall ? async () => {
|
|
1532
|
+
await generatorModule.postInstall?.({ packageManager: this.jsPackageManager });
|
|
1533
|
+
} : void 0;
|
|
1530
1534
|
if (frameworkOptions.skipGenerator)
|
|
1531
1535
|
return generatorModule.postConfigure && await generatorModule.postConfigure({ packageManager: this.jsPackageManager }), {
|
|
1532
1536
|
shouldRunDev: frameworkOptions.shouldRunDev,
|
|
1533
1537
|
storybookCommand: frameworkOptions.storybookCommand,
|
|
1534
|
-
extraAddons: []
|
|
1538
|
+
extraAddons: [],
|
|
1539
|
+
postInstall: postInstall2
|
|
1535
1540
|
};
|
|
1536
1541
|
let extraAddons = this.addonService.getAddonsForFeatures(selectedFeatures), generatorResult = await baseGenerator(
|
|
1537
1542
|
this.jsPackageManager,
|
|
@@ -1544,7 +1549,8 @@ var GeneratorExecutionCommand = class {
|
|
|
1544
1549
|
);
|
|
1545
1550
|
return generatorModule.postConfigure && await generatorModule.postConfigure({ packageManager: this.jsPackageManager }), {
|
|
1546
1551
|
...generatorResult,
|
|
1547
|
-
extraAddons
|
|
1552
|
+
extraAddons,
|
|
1553
|
+
postInstall: postInstall2
|
|
1548
1554
|
};
|
|
1549
1555
|
};
|
|
1550
1556
|
}
|
|
@@ -1555,7 +1561,7 @@ var GeneratorExecutionCommand = class {
|
|
|
1555
1561
|
selectedFeatures,
|
|
1556
1562
|
language
|
|
1557
1563
|
}) {
|
|
1558
|
-
let generatorResult = await this.executeProjectGenerator({
|
|
1564
|
+
let { postInstall: postInstall2, ...generatorResult } = await this.executeProjectGenerator({
|
|
1559
1565
|
projectType,
|
|
1560
1566
|
frameworkInfo,
|
|
1561
1567
|
options,
|
|
@@ -1565,7 +1571,12 @@ var GeneratorExecutionCommand = class {
|
|
|
1565
1571
|
return {
|
|
1566
1572
|
...generatorResult,
|
|
1567
1573
|
configDir: "configDir" in generatorResult ? generatorResult.configDir : void 0,
|
|
1568
|
-
storybookCommand: generatorResult.storybookCommand !== void 0 ? generatorResult.storybookCommand : this.jsPackageManager.getRunCommand("storybook")
|
|
1574
|
+
storybookCommand: generatorResult.storybookCommand !== void 0 ? generatorResult.storybookCommand : this.jsPackageManager.getRunCommand("storybook"),
|
|
1575
|
+
/**
|
|
1576
|
+
* Hook to run after dependencies are installed. Optional — only the generators that need to do
|
|
1577
|
+
* something after `installDependencies` will set this.
|
|
1578
|
+
*/
|
|
1579
|
+
postInstall: postInstall2
|
|
1569
1580
|
};
|
|
1570
1581
|
}
|
|
1571
1582
|
}, executeGeneratorExecution = ({
|
|
@@ -1684,13 +1695,13 @@ import {
|
|
|
1684
1695
|
async function getTemplatePath(name) {
|
|
1685
1696
|
switch (name) {
|
|
1686
1697
|
case "vitest.config.template":
|
|
1687
|
-
return import("./vitest.config.template-
|
|
1698
|
+
return import("./vitest.config.template-FPLWAJDU.js");
|
|
1688
1699
|
case "vitest.config.4.template":
|
|
1689
|
-
return import("./vitest.config.4.template-
|
|
1700
|
+
return import("./vitest.config.4.template-N2QD7Q3L.js");
|
|
1690
1701
|
case "vitest.config.3.2.template":
|
|
1691
|
-
return import("./vitest.config.3.2.template-
|
|
1702
|
+
return import("./vitest.config.3.2.template-DDODXJW5.js");
|
|
1692
1703
|
case "vitest.workspace.template":
|
|
1693
|
-
return import("./vitest.workspace.template-
|
|
1704
|
+
return import("./vitest.workspace.template-QZDSLGD3.js");
|
|
1694
1705
|
default:
|
|
1695
1706
|
throw new Error(`Unknown template: ${name}`);
|
|
1696
1707
|
}
|
|
@@ -1920,7 +1931,7 @@ var loadTemplate = async (name, replacements) => {
|
|
|
1920
1931
|
// ../../addons/vitest/src/postinstall.ts
|
|
1921
1932
|
var ADDON_NAME = "@storybook/addon-vitest", EXTENSIONS = [".ts", ".tsx", ".js", ".jsx", ".cts", ".mts", ".cjs", ".mjs"], STORYBOOK_TEST_PLUGIN_SOURCE = `${ADDON_NAME}/vitest-plugin`, addonA11yName = "@storybook/addon-a11y";
|
|
1922
1933
|
async function postInstall(options) {
|
|
1923
|
-
let errors = [], { logger: logger18, prompt:
|
|
1934
|
+
let errors = [], { logger: logger18, prompt: prompt12 } = options, packageManager = JsPackageManagerFactory3.getPackageManager({
|
|
1924
1935
|
force: options.packageManager
|
|
1925
1936
|
}), findFile = (basename, extensions = EXTENSIONS) => any(
|
|
1926
1937
|
extensions.map((ext) => basename + ext),
|
|
@@ -2068,7 +2079,7 @@ async function postInstall(options) {
|
|
|
2068
2079
|
"--yes",
|
|
2069
2080
|
"--skip-doctor"
|
|
2070
2081
|
];
|
|
2071
|
-
options.packageManager && command.push("--package-manager", options.packageManager), options.skipInstall && command.push("--skip-install"), options.configDir !== ".storybook" && command.push("--config-dir", options.configDir), await
|
|
2082
|
+
options.packageManager && command.push("--package-manager", options.packageManager), options.skipInstall && command.push("--skip-install"), options.configDir !== ".storybook" && command.push("--config-dir", options.configDir), await prompt12.executeTask(
|
|
2072
2083
|
// TODO: Remove stdio: 'ignore' once we have a way to log the output of the command properly
|
|
2073
2084
|
() => packageManager.runPackageCommand({
|
|
2074
2085
|
args: command,
|
|
@@ -2215,7 +2226,7 @@ var ADDON_INSTALLATION_INSTRUCTIONS = {
|
|
|
2215
2226
|
}
|
|
2216
2227
|
/** Configure test addons (a11y and vitest) */
|
|
2217
2228
|
async configureAddons(configDir, addons) {
|
|
2218
|
-
let { postinstallAddon } = await import("./postinstallAddon-
|
|
2229
|
+
let { postinstallAddon } = await import("./postinstallAddon-2723KJAA.js"), task = prompt6.taskLog({
|
|
2219
2230
|
id: "configure-addons",
|
|
2220
2231
|
title: "Configuring addons..."
|
|
2221
2232
|
}), addonResults = /* @__PURE__ */ new Map();
|
|
@@ -2765,13 +2776,14 @@ var REACT_default = {
|
|
|
2765
2776
|
|
|
2766
2777
|
// src/generators/REACT_NATIVE/index.ts
|
|
2767
2778
|
import { ProjectType as ProjectType12, copyTemplateFiles as copyTemplateFiles2, getBabelDependencies } from "storybook/internal/cli";
|
|
2779
|
+
import { executeCommand as executeCommand2 } from "storybook/internal/common";
|
|
2768
2780
|
|
|
2769
2781
|
// ../../core/src/shared/constants/config-folder.ts
|
|
2770
2782
|
var RN_STORYBOOK_DIR = ".rnstorybook";
|
|
2771
2783
|
|
|
2772
2784
|
// src/generators/REACT_NATIVE/index.ts
|
|
2773
2785
|
var import_ts_dedent13 = __toESM(require_dist(), 1);
|
|
2774
|
-
import { CLI_COLORS as CLI_COLORS5, logger as logger16 } from "storybook/internal/node-logger";
|
|
2786
|
+
import { CLI_COLORS as CLI_COLORS5, logger as logger16, prompt as prompt11 } from "storybook/internal/node-logger";
|
|
2775
2787
|
import { SupportedBuilder as SupportedBuilder10, SupportedLanguage as SupportedLanguage7, SupportedRenderer as SupportedRenderer11 } from "storybook/internal/types";
|
|
2776
2788
|
|
|
2777
2789
|
// src/generators/REACT_NATIVE/generateEntrypoint.ts
|
|
@@ -3110,7 +3122,34 @@ ${source}`, transformMetroConfigSource = (source, filePath) => {
|
|
|
3110
3122
|
};
|
|
3111
3123
|
|
|
3112
3124
|
// src/generators/REACT_NATIVE/index.ts
|
|
3113
|
-
var lastMetroCodemodResult, lastScriptDerivationResult, detectReactNativeEntrypointTemplateVariant = (allDependencies) => allDependencies.expo || allDependencies["expo-router"] ? "expo" : "default",
|
|
3125
|
+
var lastMetroCodemodResult, lastScriptDerivationResult, detectReactNativeEntrypointTemplateVariant = (allDependencies) => allDependencies.expo || allDependencies["expo-router"] ? "expo" : "default", fixExpoDependencyVersions = async () => {
|
|
3126
|
+
let task = prompt11.taskLog({
|
|
3127
|
+
id: "expo-install-fix",
|
|
3128
|
+
title: "Aligning Expo SDK dependency versions with `npx expo install --fix`"
|
|
3129
|
+
});
|
|
3130
|
+
try {
|
|
3131
|
+
let result = await executeCommand2({
|
|
3132
|
+
command: "npx",
|
|
3133
|
+
args: ["expo", "install", "--fix"],
|
|
3134
|
+
stdio: "pipe"
|
|
3135
|
+
});
|
|
3136
|
+
result.stdout && task.message(String(result.stdout)), task.success("Expo SDK dependency versions aligned", { showLog: !0 });
|
|
3137
|
+
} catch (err) {
|
|
3138
|
+
let message = err instanceof Error ? err.message : String(err);
|
|
3139
|
+
task.error("Could not run `npx expo install --fix` automatically"), logger16.warn(
|
|
3140
|
+
import_ts_dedent13.dedent`
|
|
3141
|
+
Could not automatically align Expo SDK package versions.
|
|
3142
|
+
|
|
3143
|
+
To avoid runtime warnings such as "Native module is null, cannot access legacy storage",
|
|
3144
|
+
run the following command in your project root:
|
|
3145
|
+
|
|
3146
|
+
${CLI_COLORS5.cta("npx expo install --fix")}
|
|
3147
|
+
|
|
3148
|
+
Reason: ${message}
|
|
3149
|
+
`
|
|
3150
|
+
);
|
|
3151
|
+
}
|
|
3152
|
+
}, REACT_NATIVE_default = {
|
|
3114
3153
|
metadata: {
|
|
3115
3154
|
projectType: ProjectType12.REACT_NATIVE,
|
|
3116
3155
|
renderer: SupportedRenderer11.REACT,
|
|
@@ -3170,6 +3209,9 @@ var lastMetroCodemodResult, lastScriptDerivationResult, detectReactNativeEntrypo
|
|
|
3170
3209
|
// React Native is started via platform scripts (see postConfigure), not `storybook dev`
|
|
3171
3210
|
};
|
|
3172
3211
|
},
|
|
3212
|
+
postInstall: async ({ packageManager }) => {
|
|
3213
|
+
detectReactNativeEntrypointTemplateVariant(packageManager.getAllDependencies()) === "expo" && await fixExpoDependencyVersions();
|
|
3214
|
+
},
|
|
3173
3215
|
postConfigure: ({ packageManager }) => {
|
|
3174
3216
|
let platformRunGuidance = (() => {
|
|
3175
3217
|
let scriptNames = Object.keys(lastScriptDerivationResult?.scriptsToAdd ?? {});
|
|
@@ -3261,6 +3303,9 @@ var REACT_NATIVE_AND_RNW_default = {
|
|
|
3261
3303
|
}),
|
|
3262
3304
|
postConfigure: async ({ packageManager }) => {
|
|
3263
3305
|
await REACT_NATIVE_WEB_default.postConfigure(), REACT_NATIVE_default.postConfigure({ packageManager });
|
|
3306
|
+
},
|
|
3307
|
+
postInstall: async ({ packageManager }) => {
|
|
3308
|
+
await REACT_NATIVE_default.postInstall?.({ packageManager });
|
|
3264
3309
|
}
|
|
3265
3310
|
};
|
|
3266
3311
|
|
|
@@ -3479,7 +3524,7 @@ async function doInitiate(options) {
|
|
|
3479
3524
|
// Skip AI feature recommendation when scaffolding into an empty directory,
|
|
3480
3525
|
// since the user hasn't yet committed to a project setup where AI tooling adds value.
|
|
3481
3526
|
isAiSetupAvailable: isAiSetupAvailable && !isEmptyProject
|
|
3482
|
-
}), { configDir, storybookCommand, shouldRunDev, extraAddons } = await executeGeneratorExecution({
|
|
3527
|
+
}), { configDir, storybookCommand, shouldRunDev, extraAddons, postInstall: postInstall2 } = await executeGeneratorExecution({
|
|
3483
3528
|
projectType,
|
|
3484
3529
|
packageManager,
|
|
3485
3530
|
frameworkInfo: { builder, framework, renderer },
|
|
@@ -3493,7 +3538,13 @@ async function doInitiate(options) {
|
|
|
3493
3538
|
skipInstall: !!options.skipInstall,
|
|
3494
3539
|
selectedFeatures
|
|
3495
3540
|
});
|
|
3496
|
-
dependencyCollector = null,
|
|
3541
|
+
if (dependencyCollector = null, postInstall2 && !options.skipInstall && dependencyInstallationResult.status === "success")
|
|
3542
|
+
try {
|
|
3543
|
+
await postInstall2();
|
|
3544
|
+
} catch (err) {
|
|
3545
|
+
logger17.warn(`Post-install step failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
3546
|
+
}
|
|
3547
|
+
await executeAddonConfiguration({
|
|
3497
3548
|
packageManager,
|
|
3498
3549
|
addons: extraAddons,
|
|
3499
3550
|
configDir,
|
|
@@ -3553,7 +3604,7 @@ async function runStorybookDev(result) {
|
|
|
3553
3604
|
availablePort !== defaultPort && parts.push("-p", `${availablePort}`), parts.push("--quiet");
|
|
3554
3605
|
}
|
|
3555
3606
|
let [command, ...args] = [...parts];
|
|
3556
|
-
await
|
|
3607
|
+
await executeCommand3({
|
|
3557
3608
|
command,
|
|
3558
3609
|
args,
|
|
3559
3610
|
stdio: "inherit"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gwdnxo3kdip from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gwdnxo3kdip from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gwdnxo3kdip from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gwdnxo3kdip.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gwdnxo3kdip.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gwdnxo3kdip.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-NG4XWDEM.js";
|
|
13
|
+
import "./chunk-FZATEDD4.js";
|
|
14
14
|
|
|
15
15
|
// ../cli-storybook/src/postinstallAddon.ts
|
|
16
16
|
import { createRequire as createRequire2 } from "node:module";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gwdnxo3kdip from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gwdnxo3kdip from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gwdnxo3kdip from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gwdnxo3kdip.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gwdnxo3kdip.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gwdnxo3kdip.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-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-UR7I3RA2.js";
|
|
15
|
+
import "./chunk-NG4XWDEM.js";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FZATEDD4.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.4.
|
|
2623
|
+
var version = "10.4.1";
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gwdnxo3kdip from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gwdnxo3kdip from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gwdnxo3kdip from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gwdnxo3kdip.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gwdnxo3kdip.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gwdnxo3kdip.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-FZATEDD4.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gwdnxo3kdip from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gwdnxo3kdip from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gwdnxo3kdip from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gwdnxo3kdip.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gwdnxo3kdip.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gwdnxo3kdip.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-FZATEDD4.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';
|
package/dist/_node-chunks/{vitest.config.template-QBNMBKGH.js → vitest.config.template-FPLWAJDU.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gwdnxo3kdip from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gwdnxo3kdip from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gwdnxo3kdip from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gwdnxo3kdip.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gwdnxo3kdip.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gwdnxo3kdip.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-FZATEDD4.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gwdnxo3kdip from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gwdnxo3kdip from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gwdnxo3kdip from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gwdnxo3kdip.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gwdnxo3kdip.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gwdnxo3kdip.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-FZATEDD4.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
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_gwdnxo3kdip from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_gwdnxo3kdip from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_gwdnxo3kdip from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_gwdnxo3kdip.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gwdnxo3kdip.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_gwdnxo3kdip.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-
|
|
23
|
+
await import("../_node-chunks/run-LEEJO2AR.js");
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gwdnxo3kdip from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gwdnxo3kdip from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gwdnxo3kdip from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gwdnxo3kdip.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gwdnxo3kdip.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gwdnxo3kdip.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-
|
|
15
|
-
import "./_node-chunks/chunk-
|
|
16
|
-
import "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-UR7I3RA2.js";
|
|
15
|
+
import "./_node-chunks/chunk-NG4XWDEM.js";
|
|
16
|
+
import "./_node-chunks/chunk-FZATEDD4.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.4.
|
|
3
|
+
"version": "10.4.1",
|
|
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.4.
|
|
42
|
+
"storybook": "10.4.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/prompts": "^2.0.9",
|