@storybook/codemod 7.0.0-alpha.31 → 7.0.0-alpha.34

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -118,7 +118,8 @@ async function runCodemod(codemod, {
118
118
  if (!dryRun) {
119
119
  var parserArgs = inferredParser ? ['--parser', inferredParser] : [];
120
120
  (0, _crossSpawn.sync)('npx', ['jscodeshift', '-t', `${TRANSFORM_DIR}/${codemod}.js`, ...parserArgs, ...files], {
121
- stdio: 'inherit'
121
+ stdio: 'inherit',
122
+ shell: true
122
123
  });
123
124
  }
124
125
 
@@ -128,7 +128,7 @@ function transform({
128
128
  storyFn = init;
129
129
  }
130
130
 
131
- var keyId = t.identifier(key); // @ts-ignore
131
+ var keyId = t.identifier(key); // @ts-expect-error (Converted from ts-ignore)
132
132
 
133
133
  var typeAnnotation = id.typeAnnotation;
134
134
 
package/dist/esm/index.js CHANGED
@@ -76,7 +76,8 @@ export async function runCodemod(codemod, {
76
76
  if (!dryRun) {
77
77
  var parserArgs = inferredParser ? ['--parser', inferredParser] : [];
78
78
  spawnSync('npx', ['jscodeshift', '-t', `${TRANSFORM_DIR}/${codemod}.js`, ...parserArgs, ...files], {
79
- stdio: 'inherit'
79
+ stdio: 'inherit',
80
+ shell: true
80
81
  });
81
82
  }
82
83
 
@@ -112,7 +112,7 @@ function transform({
112
112
  storyFn = init;
113
113
  }
114
114
 
115
- var keyId = t.identifier(key); // @ts-ignore
115
+ var keyId = t.identifier(key); // @ts-expect-error (Converted from ts-ignore)
116
116
 
117
117
  var typeAnnotation = id.typeAnnotation;
118
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/codemod",
3
- "version": "7.0.0-alpha.31",
3
+ "version": "7.0.0-alpha.34",
4
4
  "description": "A collection of codemod scripts written with JSCodeshift",
5
5
  "keywords": [
6
6
  "storybook"
@@ -31,15 +31,15 @@
31
31
  "!__testfixtures__"
32
32
  ],
33
33
  "scripts": {
34
- "check": "tsc --noEmit",
34
+ "check": "../../../scripts/node_modules/.bin/tsc --noEmit",
35
35
  "prep": "node ../../../scripts/prepare.js"
36
36
  },
37
37
  "dependencies": {
38
38
  "@babel/types": "^7.12.11",
39
39
  "@mdx-js/mdx": "^1.6.22",
40
40
  "@storybook/csf": "0.0.2--canary.0899bb7.0",
41
- "@storybook/csf-tools": "7.0.0-alpha.31",
42
- "@storybook/node-logger": "7.0.0-alpha.31",
41
+ "@storybook/csf-tools": "7.0.0-alpha.34",
42
+ "@storybook/node-logger": "7.0.0-alpha.34",
43
43
  "cross-spawn": "^7.0.3",
44
44
  "globby": "^11.0.2",
45
45
  "jscodeshift": "^0.13.1",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "02c013c33186479017098d532a18ff8654b91f1f"
58
+ "gitHead": "fc90fc875462421c1faa35862ac4bc436de8e75f"
59
59
  }