We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 984e984 commit 351de20Copy full SHA for 351de20
src/index.ts
@@ -3,3 +3,5 @@
3
export { default as VueTransformation } from './VueTransformation'
4
5
export { default as runTransformation } from './run-transformation'
6
+
7
+export { default as transformations } from '../transformations'
transformations/index.ts
@@ -1,5 +1,12 @@
1
+import type { Transform, Parser } from 'jscodeshift'
2
+type JSTransformationModule = {
+ default: Transform
+ parser?: string | Parser
+}
8
const transformationMap: {
- [name: string]: Function
9
+ [name: string]: JSTransformationModule
10
} = {
11
'new-global-api': require('./new-global-api'),
12
'vue-router-v4': require('./vue-router-v4'),
0 commit comments