@storybook/cli 9.2.0-alpha.3 → 10.0.0-beta.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/README.md +2 -0
- package/dist/_node-chunks/block-dependencies-versions-PPYAFWDA.js +72 -0
- package/dist/_node-chunks/block-experimental-addon-test-QLGAUVB3.js +58 -0
- package/dist/_node-chunks/block-major-version-F3OQ5AOC.js +101 -0
- package/dist/_node-chunks/block-node-version-EUSNME7S.js +43 -0
- package/dist/_node-chunks/block-webpack5-frameworks-7PZITFJO.js +72 -0
- package/dist/_node-chunks/chunk-C37UCEIL.js +87 -0
- package/dist/_node-chunks/chunk-FBQUZMMC.js +6733 -0
- package/dist/_node-chunks/chunk-NCNQCJ2A.js +1939 -0
- package/dist/_node-chunks/chunk-NQBG2QH4.js +24 -0
- package/dist/_node-chunks/chunk-O3UVG4LT.js +50 -0
- package/dist/_node-chunks/chunk-V6AR5AG7.js +1874 -0
- package/dist/_node-chunks/globby-AX6BVAQL.js +38 -0
- package/dist/_node-chunks/p-limit-OKSG3O33.js +102 -0
- package/dist/_node-chunks/run-3WIAHA4V.js +10252 -0
- package/dist/bin/index.js +25 -0
- package/package.json +15 -25
- package/bin/index.cjs +0 -26
- package/dist/bin/index.cjs +0 -294
- package/dist/bin/index.d.ts +0 -2
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +0 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vh9lpte9xjr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vh9lpte9xjr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vh9lpte9xjr from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vh9lpte9xjr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vh9lpte9xjr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vh9lpte9xjr.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
convertPathToPattern,
|
|
14
|
+
generateGlobTasks,
|
|
15
|
+
generateGlobTasksSync,
|
|
16
|
+
globby,
|
|
17
|
+
globbyStream,
|
|
18
|
+
globbySync,
|
|
19
|
+
isDynamicPattern,
|
|
20
|
+
isGitIgnored,
|
|
21
|
+
isGitIgnoredSync,
|
|
22
|
+
isIgnoredByIgnoreFiles,
|
|
23
|
+
isIgnoredByIgnoreFilesSync
|
|
24
|
+
} from "./chunk-FBQUZMMC.js";
|
|
25
|
+
import "./chunk-O3UVG4LT.js";
|
|
26
|
+
export {
|
|
27
|
+
convertPathToPattern,
|
|
28
|
+
generateGlobTasks,
|
|
29
|
+
generateGlobTasksSync,
|
|
30
|
+
globby,
|
|
31
|
+
globbyStream,
|
|
32
|
+
globbySync,
|
|
33
|
+
isDynamicPattern,
|
|
34
|
+
isGitIgnored,
|
|
35
|
+
isGitIgnoredSync,
|
|
36
|
+
isIgnoredByIgnoreFiles,
|
|
37
|
+
isIgnoredByIgnoreFilesSync
|
|
38
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vh9lpte9xjr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vh9lpte9xjr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vh9lpte9xjr from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vh9lpte9xjr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vh9lpte9xjr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vh9lpte9xjr.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
Queue
|
|
14
|
+
} from "./chunk-C37UCEIL.js";
|
|
15
|
+
import {
|
|
16
|
+
__name
|
|
17
|
+
} from "./chunk-O3UVG4LT.js";
|
|
18
|
+
|
|
19
|
+
// ../../node_modules/p-limit/index.js
|
|
20
|
+
function pLimit(concurrency) {
|
|
21
|
+
validateConcurrency(concurrency);
|
|
22
|
+
const queue = new Queue();
|
|
23
|
+
let activeCount = 0;
|
|
24
|
+
const resumeNext = /* @__PURE__ */ __name(() => {
|
|
25
|
+
if (activeCount < concurrency && queue.size > 0) {
|
|
26
|
+
queue.dequeue()();
|
|
27
|
+
activeCount++;
|
|
28
|
+
}
|
|
29
|
+
}, "resumeNext");
|
|
30
|
+
const next = /* @__PURE__ */ __name(() => {
|
|
31
|
+
activeCount--;
|
|
32
|
+
resumeNext();
|
|
33
|
+
}, "next");
|
|
34
|
+
const run = /* @__PURE__ */ __name(async (function_, resolve, arguments_) => {
|
|
35
|
+
const result = (async () => function_(...arguments_))();
|
|
36
|
+
resolve(result);
|
|
37
|
+
try {
|
|
38
|
+
await result;
|
|
39
|
+
} catch {
|
|
40
|
+
}
|
|
41
|
+
next();
|
|
42
|
+
}, "run");
|
|
43
|
+
const enqueue = /* @__PURE__ */ __name((function_, resolve, arguments_) => {
|
|
44
|
+
new Promise((internalResolve) => {
|
|
45
|
+
queue.enqueue(internalResolve);
|
|
46
|
+
}).then(
|
|
47
|
+
run.bind(void 0, function_, resolve, arguments_)
|
|
48
|
+
);
|
|
49
|
+
(async () => {
|
|
50
|
+
await Promise.resolve();
|
|
51
|
+
if (activeCount < concurrency) {
|
|
52
|
+
resumeNext();
|
|
53
|
+
}
|
|
54
|
+
})();
|
|
55
|
+
}, "enqueue");
|
|
56
|
+
const generator = /* @__PURE__ */ __name((function_, ...arguments_) => new Promise((resolve) => {
|
|
57
|
+
enqueue(function_, resolve, arguments_);
|
|
58
|
+
}), "generator");
|
|
59
|
+
Object.defineProperties(generator, {
|
|
60
|
+
activeCount: {
|
|
61
|
+
get: /* @__PURE__ */ __name(() => activeCount, "get")
|
|
62
|
+
},
|
|
63
|
+
pendingCount: {
|
|
64
|
+
get: /* @__PURE__ */ __name(() => queue.size, "get")
|
|
65
|
+
},
|
|
66
|
+
clearQueue: {
|
|
67
|
+
value() {
|
|
68
|
+
queue.clear();
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
concurrency: {
|
|
72
|
+
get: /* @__PURE__ */ __name(() => concurrency, "get"),
|
|
73
|
+
set(newConcurrency) {
|
|
74
|
+
validateConcurrency(newConcurrency);
|
|
75
|
+
concurrency = newConcurrency;
|
|
76
|
+
queueMicrotask(() => {
|
|
77
|
+
while (activeCount < concurrency && queue.size > 0) {
|
|
78
|
+
resumeNext();
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
return generator;
|
|
85
|
+
}
|
|
86
|
+
__name(pLimit, "pLimit");
|
|
87
|
+
function limitFunction(function_, option) {
|
|
88
|
+
const { concurrency } = option;
|
|
89
|
+
const limit = pLimit(concurrency);
|
|
90
|
+
return (...arguments_) => limit(() => function_(...arguments_));
|
|
91
|
+
}
|
|
92
|
+
__name(limitFunction, "limitFunction");
|
|
93
|
+
function validateConcurrency(concurrency) {
|
|
94
|
+
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
|
95
|
+
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
__name(validateConcurrency, "validateConcurrency");
|
|
99
|
+
export {
|
|
100
|
+
pLimit as default,
|
|
101
|
+
limitFunction
|
|
102
|
+
};
|