Skip to content

Commit 3614b45

Browse files
committed
chore: filter out some transformations for -a command
1 parent 1bec693 commit 3614b45

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

bin/vue-codemod.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,23 @@ async function main() {
6666
}
6767

6868
if (runAllTransformation) {
69+
const excludedTransformations = [
70+
'define-component',
71+
'new-vue-to-create-app',
72+
'remove-contextual-h-from-render',
73+
'remove-production-tip',
74+
'remove-trivial-root',
75+
'remove-vue-use',
76+
'root-prop-to-use',
77+
'vue-as-namespace-import',
78+
'add-import',
79+
'remove-extraneous-import'
80+
]
81+
6982
for (let key in builtInTransformations) {
70-
processTransformation(resolvedPaths, key, builtInTransformations[key])
83+
if (!excludedTransformations.includes(key)) {
84+
processTransformation(resolvedPaths, key, builtInTransformations[key])
85+
}
7186
}
7287

7388
for (let key in vueTransformations) {

0 commit comments

Comments
 (0)