Skip to content

Commit 9d93580

Browse files
committed
made this work with AII lol
1 parent be3a69f commit 9d93580

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

codemod.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
schema_version: "1.0.0"
2+
name: react-declassify-workflow
3+
version: 1.0.0
4+
description: "React Class to Hook Codemod with AI review"
5+
author: "istan"
6+
engine: workflow
7+
arguments: []

workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ nodes:
1313
type: automatic
1414
steps:
1515
- name: "Transform React class components to function components"
16-
exec: "npx -y @codemod/cli --plugin ./dist/index.js '**/*.tsx' '**/*.ts' '**/*.jsx' '**/*.js' --ignore-pattern 'node_modules/**' --ignore-pattern 'dist/**' --ignore-pattern 'build/**' --ignore-pattern 'cjs/**'"
16+
run: "npx -y @codemod/cli@3.3.0 --plugin ../../../react-declassify/cjs/dist/index.js src/"
1717
- id: ai-review
1818
name: "AI Review"
1919
type: automatic

0 commit comments

Comments
 (0)