@storybook/codemod 10.0.2 → 10.0.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-U5MV4ZQ3.js +17 -0
- package/dist/_node-chunks/{chunk-I27ELHNB.js → chunk-ZPG4IR2Y.js} +7 -7
- package/dist/index.js +7 -7
- package/dist/transforms/csf-2-to-3.js +8 -8
- package/dist/transforms/find-implicit-spies.js +7 -7
- package/dist/transforms/upgrade-deprecated-types.js +8 -8
- package/dist/transforms/upgrade-hierarchy-separators.js +7 -7
- package/package.json +2 -2
- package/dist/_node-chunks/chunk-5Q2BMYLB.js +0 -17
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_eixez9yn4de from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_eixez9yn4de from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_eixez9yn4de from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_eixez9yn4de.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_eixez9yn4de.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_eixez9yn4de.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
__name
|
|
17
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_eixez9yn4de from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_eixez9yn4de from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_eixez9yn4de from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_eixez9yn4de.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_eixez9yn4de.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_eixez9yn4de.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U5MV4ZQ3.js";
|
|
15
15
|
|
|
16
16
|
// src/transforms/upgrade-deprecated-types.ts
|
|
17
17
|
import { core as babel, types as t } from "storybook/internal/babel";
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_eixez9yn4de from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_eixez9yn4de from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_eixez9yn4de from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_eixez9yn4de.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_eixez9yn4de.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_eixez9yn4de.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
|
__name
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-U5MV4ZQ3.js";
|
|
15
15
|
|
|
16
16
|
// src/index.ts
|
|
17
17
|
import { readdirSync } from "node:fs";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_eixez9yn4de from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_eixez9yn4de from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_eixez9yn4de from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_eixez9yn4de.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_eixez9yn4de.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_eixez9yn4de.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
|
upgradeDeprecatedTypes
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-ZPG4IR2Y.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-U5MV4ZQ3.js";
|
|
18
18
|
|
|
19
19
|
// src/transforms/csf-2-to-3.ts
|
|
20
20
|
import { core as babel, types as t } from "storybook/internal/babel";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_eixez9yn4de from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_eixez9yn4de from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_eixez9yn4de from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_eixez9yn4de.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_eixez9yn4de.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_eixez9yn4de.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
|
__name
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-U5MV4ZQ3.js";
|
|
15
15
|
|
|
16
16
|
// src/transforms/find-implicit-spies.ts
|
|
17
17
|
import { core as babel, types as t } from "storybook/internal/babel";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_eixez9yn4de from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_eixez9yn4de from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_eixez9yn4de from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_eixez9yn4de.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_eixez9yn4de.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_eixez9yn4de.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
parser,
|
|
14
14
|
transform,
|
|
15
15
|
upgradeDeprecatedTypes
|
|
16
|
-
} from "../_node-chunks/chunk-
|
|
17
|
-
import "../_node-chunks/chunk-
|
|
16
|
+
} from "../_node-chunks/chunk-ZPG4IR2Y.js";
|
|
17
|
+
import "../_node-chunks/chunk-U5MV4ZQ3.js";
|
|
18
18
|
export {
|
|
19
19
|
transform as default,
|
|
20
20
|
parser,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_eixez9yn4de from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_eixez9yn4de from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_eixez9yn4de from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_eixez9yn4de.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_eixez9yn4de.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_eixez9yn4de.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
|
__name
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-U5MV4ZQ3.js";
|
|
15
15
|
|
|
16
16
|
// src/transforms/upgrade-hierarchy-separators.js
|
|
17
17
|
function upgradeSeparator(path) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/codemod",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.4",
|
|
4
4
|
"description": "A collection of codemod scripts written with JSCodeshift",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"es-toolkit": "^1.36.0",
|
|
50
50
|
"jscodeshift": "^0.15.1",
|
|
51
51
|
"prettier": "^3.5.3",
|
|
52
|
-
"storybook": "10.0.
|
|
52
|
+
"storybook": "10.0.4",
|
|
53
53
|
"tiny-invariant": "^1.3.1",
|
|
54
54
|
"tinyglobby": "^0.2.13"
|
|
55
55
|
},
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_p104z18a7p from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_p104z18a7p from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_p104z18a7p from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_p104z18a7p.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_p104z18a7p.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_p104z18a7p.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
var __defProp = Object.defineProperty;
|
|
13
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
__name
|
|
17
|
-
};
|