@storybook/codemod 7.0.0-alpha.2 → 7.0.0-alpha.5
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/cjs/lib/utils.js
CHANGED
@@ -123,7 +123,11 @@ function transform({
|
|
123
123
|
|
124
124
|
|
125
125
|
var storyFn = template && csf._templates[template];
|
126
|
-
|
126
|
+
|
127
|
+
if (!storyFn) {
|
128
|
+
storyFn = init;
|
129
|
+
}
|
130
|
+
|
127
131
|
var keyId = t.identifier(key); // @ts-ignore
|
128
132
|
|
129
133
|
var typeAnnotation = id.typeAnnotation;
|
package/dist/esm/lib/utils.js
CHANGED
@@ -107,7 +107,11 @@ function transform({
|
|
107
107
|
|
108
108
|
|
109
109
|
var storyFn = template && csf._templates[template];
|
110
|
-
|
110
|
+
|
111
|
+
if (!storyFn) {
|
112
|
+
storyFn = init;
|
113
|
+
}
|
114
|
+
|
111
115
|
var keyId = t.identifier(key); // @ts-ignore
|
112
116
|
|
113
117
|
var typeAnnotation = id.typeAnnotation;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/codemod",
|
3
|
-
"version": "7.0.0-alpha.
|
3
|
+
"version": "7.0.0-alpha.5",
|
4
4
|
"description": "A collection of codemod scripts written with JSCodeshift",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -44,16 +44,15 @@
|
|
44
44
|
"@babel/types": "^7.12.11",
|
45
45
|
"@mdx-js/mdx": "^1.6.22",
|
46
46
|
"@storybook/csf": "0.0.2--canary.4566f4d.1",
|
47
|
-
"@storybook/csf-tools": "7.0.0-alpha.
|
48
|
-
"@storybook/node-logger": "7.0.0-alpha.
|
47
|
+
"@storybook/csf-tools": "7.0.0-alpha.5",
|
48
|
+
"@storybook/node-logger": "7.0.0-alpha.5",
|
49
49
|
"core-js": "^3.8.2",
|
50
50
|
"cross-spawn": "^7.0.3",
|
51
51
|
"globby": "^11.0.2",
|
52
52
|
"jscodeshift": "^0.13.1",
|
53
53
|
"lodash": "^4.17.21",
|
54
54
|
"prettier": ">=2.2.1 <=2.3.0",
|
55
|
-
"recast": "^0.19.0"
|
56
|
-
"regenerator-runtime": "^0.13.7"
|
55
|
+
"recast": "^0.19.0"
|
57
56
|
},
|
58
57
|
"devDependencies": {
|
59
58
|
"jest": "^26.6.3",
|
@@ -62,5 +61,5 @@
|
|
62
61
|
"publishConfig": {
|
63
62
|
"access": "public"
|
64
63
|
},
|
65
|
-
"gitHead": "
|
64
|
+
"gitHead": "3dd46982823b34d9f37be917b6247631081feff7"
|
66
65
|
}
|