@storybook/cli 0.0.0-pr-31987-sha-64db30c4 → 0.0.0-pr-31819-sha-e4987461
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/block-dependencies-versions-TXBSEDV2.js +68 -0
- package/dist/_node-chunks/block-experimental-addon-test-CYEHF4QX.js +50 -0
- package/dist/_node-chunks/block-major-version-SNJ4HP4L.js +79 -0
- package/dist/_node-chunks/block-node-version-7CEO7ULJ.js +37 -0
- package/dist/_node-chunks/block-webpack5-frameworks-VYS4HIQ4.js +66 -0
- package/dist/_node-chunks/chunk-DIYAIJOC.js +43 -0
- package/dist/_node-chunks/chunk-HYSPXQWQ.js +1396 -0
- package/dist/_node-chunks/chunk-L4UXEF6T.js +67 -0
- package/dist/_node-chunks/chunk-T5MTMKK3.js +10 -0
- package/dist/_node-chunks/chunk-VQWHITUU.js +4441 -0
- package/dist/_node-chunks/chunk-Z5JDYKZQ.js +1080 -0
- package/dist/_node-chunks/globby-WBCFFKC4.js +37 -0
- package/dist/_node-chunks/p-limit-5WOIREEI.js +79 -0
- package/dist/_node-chunks/run-7VTYTYQY.js +8715 -0
- package/dist/bin/index.js +21 -0
- package/package.json +8 -23
- 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,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import CJS_COMPAT_NODE_URL from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE from "node:module";
|
|
5
|
+
|
|
6
|
+
const __filename = CJS_COMPAT_NODE_URL.fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = CJS_COMPAT_NODE_PATH.dirname(__filename);
|
|
8
|
+
const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// src/bin/index.ts
|
|
14
|
+
import { logger as e } from "storybook/internal/node-logger";
|
|
15
|
+
import n from "ts-dedent";
|
|
16
|
+
var [o, r] = process.versions.node.split(".").map(Number);
|
|
17
|
+
(o < 20 || o === 20 && r < 19 || o === 22 && r < 12) && (e.error(
|
|
18
|
+
n`To run Storybook, you need Node.js version 20.19+ or 22.12+.
|
|
19
|
+
You are currently running Node.js ${process.version}. Please upgrade your Node.js installation.`
|
|
20
|
+
), process.exit(1));
|
|
21
|
+
import("../_node-chunks/run-7VTYTYQY.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-31819-sha-e4987461",
|
|
4
4
|
"description": "Storybook CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -22,14 +22,9 @@
|
|
|
22
22
|
"author": "Storybook Team",
|
|
23
23
|
"type": "module",
|
|
24
24
|
"exports": {
|
|
25
|
-
".": {
|
|
26
|
-
"types": "./dist/index.d.ts",
|
|
27
|
-
"import": "./dist/index.js"
|
|
28
|
-
},
|
|
29
|
-
"./bin/index.cjs": "./bin/index.cjs",
|
|
30
25
|
"./package.json": "./package.json"
|
|
31
26
|
},
|
|
32
|
-
"bin": "./bin/index.
|
|
27
|
+
"bin": "./dist/bin/index.js",
|
|
33
28
|
"files": [
|
|
34
29
|
"bin/**/*",
|
|
35
30
|
"dist/**/*",
|
|
@@ -37,17 +32,17 @@
|
|
|
37
32
|
"!src/**/*"
|
|
38
33
|
],
|
|
39
34
|
"scripts": {
|
|
40
|
-
"check": "jiti
|
|
41
|
-
"prep": "jiti
|
|
35
|
+
"check": "jiti ../../../scripts/check/check-package.ts",
|
|
36
|
+
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
42
37
|
},
|
|
43
38
|
"dependencies": {
|
|
44
|
-
"@storybook/codemod": "0.0.0-pr-
|
|
39
|
+
"@storybook/codemod": "0.0.0-pr-31819-sha-e4987461",
|
|
45
40
|
"@types/semver": "^7.3.4",
|
|
46
41
|
"commander": "^12.1.0",
|
|
47
|
-
"create-storybook": "0.0.0-pr-
|
|
42
|
+
"create-storybook": "0.0.0-pr-31819-sha-e4987461",
|
|
48
43
|
"giget": "^1.0.0",
|
|
49
44
|
"jscodeshift": "^0.15.1",
|
|
50
|
-
"storybook": "0.0.0-pr-
|
|
45
|
+
"storybook": "0.0.0-pr-31819-sha-e4987461",
|
|
51
46
|
"ts-dedent": "^2.0.0"
|
|
52
47
|
},
|
|
53
48
|
"devDependencies": {
|
|
@@ -72,15 +67,5 @@
|
|
|
72
67
|
"publishConfig": {
|
|
73
68
|
"access": "public"
|
|
74
69
|
},
|
|
75
|
-
"
|
|
76
|
-
"entries": [
|
|
77
|
-
"./src/index.ts",
|
|
78
|
-
"./src/bin/index.ts"
|
|
79
|
-
],
|
|
80
|
-
"formats": [
|
|
81
|
-
"cjs"
|
|
82
|
-
],
|
|
83
|
-
"platform": "node"
|
|
84
|
-
},
|
|
85
|
-
"gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae16"
|
|
70
|
+
"gitHead": "a6e7fd8a655c69780bc20b9749c2699e44beae10"
|
|
86
71
|
}
|
package/bin/index.cjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const majorNodeVersion = parseInt(process.versions.node, 10);
|
|
4
|
-
if (majorNodeVersion < 20) {
|
|
5
|
-
console.error('To run Storybook you need to have Node.js 20 or higher');
|
|
6
|
-
process.exit(1);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
// The Storybook CLI has a catch block for all of its commands, but if an error
|
|
10
|
-
// occurs before the command even runs, for instance, if an import fails, then
|
|
11
|
-
// such error will fall under the uncaughtException handler.
|
|
12
|
-
// This is the earliest moment we can catch such errors.
|
|
13
|
-
process.once('uncaughtException', (error) => {
|
|
14
|
-
if (error.message.includes('string-width')) {
|
|
15
|
-
console.error(
|
|
16
|
-
[
|
|
17
|
-
'🔴 Error: It looks like you are having a known issue with package hoisting.',
|
|
18
|
-
'Please check the following issue for details and solutions: https://github.com/storybookjs/storybook/issues/22431#issuecomment-1630086092\n\n',
|
|
19
|
-
].join('\n')
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
throw error;
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
require('../dist/bin/index.cjs');
|