create-storybook 10.6.2 → 10.6.4
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-QAZPWB4R.js → chunk-5DBUPZUE.js} +6 -6
- package/dist/_node-chunks/{chunk-CGZEVNVJ.js → chunk-POMA2BY2.js} +12 -12
- package/dist/_node-chunks/{postinstallAddon-Z63P5AG5.js → postinstallAddon-EIPHQWXN.js} +21 -14
- package/dist/_node-chunks/{run-2QS57J34.js → run-QNKQ2LBO.js} +9 -9
- package/dist/_node-chunks/{vitest.config.3.2.template-3GGCHBKL.js → vitest.config.3.2.template-DET7TPXW.js} +7 -7
- package/dist/_node-chunks/{vitest.config.4.template-5OJR7M6W.js → vitest.config.4.template-QN7NXUSH.js} +7 -7
- package/dist/_node-chunks/{vitest.config.template-ZEWRRWMS.js → vitest.config.template-KQCUADTT.js} +7 -7
- package/dist/_node-chunks/{vitest.workspace.template-MKKIJAP3.js → vitest.workspace.template-ZSUZJ2UZ.js} +7 -7
- package/dist/bin/index.js +7 -7
- package/dist/index.js +8 -8
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hxz5j4onkap from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hxz5j4onkap from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hxz5j4onkap from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hxz5j4onkap.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hxz5j4onkap.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hxz5j4onkap.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_hxz5j4onkap from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hxz5j4onkap from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hxz5j4onkap from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hxz5j4onkap.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hxz5j4onkap.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hxz5j4onkap.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_a1aq9jsrd17.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__toESM
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5DBUPZUE.js";
|
|
16
16
|
|
|
17
17
|
// ../../../node_modules/ts-dedent/dist/index.js
|
|
18
18
|
var require_dist = __commonJS({
|
|
@@ -1852,13 +1852,13 @@ import {
|
|
|
1852
1852
|
async function getTemplatePath(name) {
|
|
1853
1853
|
switch (name) {
|
|
1854
1854
|
case "vitest.config.template":
|
|
1855
|
-
return import("./vitest.config.template-
|
|
1855
|
+
return import("./vitest.config.template-KQCUADTT.js");
|
|
1856
1856
|
case "vitest.config.4.template":
|
|
1857
|
-
return import("./vitest.config.4.template-
|
|
1857
|
+
return import("./vitest.config.4.template-QN7NXUSH.js");
|
|
1858
1858
|
case "vitest.config.3.2.template":
|
|
1859
|
-
return import("./vitest.config.3.2.template-
|
|
1859
|
+
return import("./vitest.config.3.2.template-DET7TPXW.js");
|
|
1860
1860
|
case "vitest.workspace.template":
|
|
1861
|
-
return import("./vitest.workspace.template-
|
|
1861
|
+
return import("./vitest.workspace.template-ZSUZJ2UZ.js");
|
|
1862
1862
|
default:
|
|
1863
1863
|
throw new Error(`Unknown template: ${name}`);
|
|
1864
1864
|
}
|
|
@@ -2447,7 +2447,7 @@ var ADDON_INSTALLATION_INSTRUCTIONS = {
|
|
|
2447
2447
|
}
|
|
2448
2448
|
/** Configure test addons (a11y and vitest) */
|
|
2449
2449
|
async configureAddons(configDir, addons) {
|
|
2450
|
-
let { postinstallAddon } = await import("./postinstallAddon-
|
|
2450
|
+
let { postinstallAddon } = await import("./postinstallAddon-EIPHQWXN.js"), task = prompt6.taskLog({
|
|
2451
2451
|
id: "configure-addons",
|
|
2452
2452
|
title: "Configuring addons..."
|
|
2453
2453
|
}), addonResults = /* @__PURE__ */ new Map();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hxz5j4onkap from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hxz5j4onkap from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hxz5j4onkap from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hxz5j4onkap.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hxz5j4onkap.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hxz5j4onkap.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-5DBUPZUE.js";
|
|
13
13
|
|
|
14
14
|
// ../cli-storybook/src/postinstallAddon.ts
|
|
15
15
|
import { spawnSync } from "node:child_process";
|
|
@@ -18,7 +18,7 @@ import { join as join2 } from "node:path";
|
|
|
18
18
|
import { fileURLToPath as fileURLToPath2, pathToFileURL as pathToFileURL2 } from "node:url";
|
|
19
19
|
|
|
20
20
|
// ../../core/src/shared/utils/module.ts
|
|
21
|
-
import { createRequire
|
|
21
|
+
import nodeModule, { createRequire } from "node:module";
|
|
22
22
|
import { win32 } from "node:path/win32";
|
|
23
23
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
24
24
|
|
|
@@ -150,12 +150,19 @@ var isWindows = process.platform === "win32", globalCache = globalThis.__EXSOLVE
|
|
|
150
150
|
var importMetaResolve = (...args) => typeof import.meta.resolve != "function" && process.env.VITEST === "true" ? (console.warn(
|
|
151
151
|
"importMetaResolve from within Storybook is being used in a Vitest test, but it shouldn't be. Please report this at https://github.com/storybookjs/storybook/issues/new?template=bug_report.yml"
|
|
152
152
|
), pathToFileURL(args[0]).href) : import.meta.resolve(...args);
|
|
153
|
-
var
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
var typescriptLoaderRegistration = null, typescriptLoaderRegistrationError = null;
|
|
154
|
+
function registerTypescriptLoader() {
|
|
155
|
+
return typescriptLoaderRegistration ??= (async () => {
|
|
156
156
|
let typescriptLoaderUrl = importMetaResolve("storybook/internal/bin/loader");
|
|
157
|
-
register(typescriptLoaderUrl, import.meta.url)
|
|
158
|
-
}
|
|
157
|
+
nodeModule.register(typescriptLoaderUrl, import.meta.url);
|
|
158
|
+
})().catch(async (error) => {
|
|
159
|
+
typescriptLoaderRegistrationError = error;
|
|
160
|
+
let { logger } = await import("storybook/internal/node-logger");
|
|
161
|
+
logger.debug(`Storybook's TypeScript loader hooks could not be registered: ${error}`);
|
|
162
|
+
}), typescriptLoaderRegistration;
|
|
163
|
+
}
|
|
164
|
+
async function importModule(path2, { skipCache = !1 } = {}) {
|
|
165
|
+
await registerTypescriptLoader();
|
|
159
166
|
let mod;
|
|
160
167
|
try {
|
|
161
168
|
let resolvedPath = win32.isAbsolute(path2) ? pathToFileURL(path2).href : path2;
|
|
@@ -165,7 +172,7 @@ async function importModule(path2, { skipCache = !1 } = {}) {
|
|
|
165
172
|
let require3 = createRequire(import.meta.url);
|
|
166
173
|
skipCache && delete require3.cache[require3.resolve(path2)], mod = require3(path2);
|
|
167
174
|
} catch {
|
|
168
|
-
throw importError;
|
|
175
|
+
throw typescriptLoaderRegistrationError && importError instanceof Error && (importError.cause = typescriptLoaderRegistrationError), importError;
|
|
169
176
|
}
|
|
170
177
|
}
|
|
171
178
|
return mod.default ?? mod;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hxz5j4onkap from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hxz5j4onkap from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hxz5j4onkap from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hxz5j4onkap.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hxz5j4onkap.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hxz5j4onkap.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-
|
|
14
|
+
} from "./chunk-POMA2BY2.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5DBUPZUE.js";
|
|
20
20
|
|
|
21
21
|
// ../../../node_modules/commander/lib/error.js
|
|
22
22
|
var require_error = __commonJS({
|
|
@@ -2619,7 +2619,7 @@ var import_index = __toESM(require_commander(), 1), {
|
|
|
2619
2619
|
} = import_index.default;
|
|
2620
2620
|
|
|
2621
2621
|
// package.json
|
|
2622
|
-
var version = "10.6.
|
|
2622
|
+
var version = "10.6.4";
|
|
2623
2623
|
|
|
2624
2624
|
// ../../../node_modules/std-env/dist/index.mjs
|
|
2625
2625
|
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_hxz5j4onkap from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hxz5j4onkap from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hxz5j4onkap from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hxz5j4onkap.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hxz5j4onkap.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hxz5j4onkap.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-5DBUPZUE.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_hxz5j4onkap from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hxz5j4onkap from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hxz5j4onkap from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hxz5j4onkap.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hxz5j4onkap.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hxz5j4onkap.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-5DBUPZUE.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-ZEWRRWMS.js → vitest.config.template-KQCUADTT.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hxz5j4onkap from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hxz5j4onkap from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hxz5j4onkap from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hxz5j4onkap.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hxz5j4onkap.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hxz5j4onkap.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-5DBUPZUE.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_hxz5j4onkap from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hxz5j4onkap from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hxz5j4onkap from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hxz5j4onkap.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hxz5j4onkap.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hxz5j4onkap.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-5DBUPZUE.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_hxz5j4onkap from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_hxz5j4onkap from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_hxz5j4onkap from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_hxz5j4onkap.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hxz5j4onkap.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_hxz5j4onkap.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-QNKQ2LBO.js");
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hxz5j4onkap from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hxz5j4onkap from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hxz5j4onkap from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hxz5j4onkap.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hxz5j4onkap.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hxz5j4onkap.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-
|
|
14
|
+
} from "./_node-chunks/chunk-POMA2BY2.js";
|
|
15
|
+
import "./_node-chunks/chunk-5DBUPZUE.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.6.
|
|
3
|
+
"version": "10.6.4",
|
|
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.6.
|
|
42
|
+
"storybook": "10.6.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/prompts": "^2.0.9",
|