File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 yarn install
77 yarn build
88
9+ # Install the packaged tarball globally on your machine
10+ # Example of how to use afterwords:
11+ # yarn dlx @codemod/cli --plugin react-declassify
12+ install-global : pack
13+ npm install -g ./ package.tgz
14+
915# Run tests
1016test : build
1117 yarn test
@@ -17,16 +23,14 @@ pack: build
1723# Run the codemod locally using the built plugin against a target directory
1824# Usage: just run-local ../my-project/src
1925run-local target_dir : build
20- yarn dlx @codemod/ cli --plugin ./ dist/ index.js ' {{ target_dir}} /**/*.tsx' ' {{ target_dir}} /**/*.ts' ' {{ target_dir}} /**/*.jsx' ' {{ target_dir}} /**/*.js'
21-
22-
26+ yarn dlx @codemod/ cli --plugin ./ dist/ index.js ' {{ target_dir }} /**/*.tsx' ' {{ target_dir }} /**/*.ts' ' {{ target_dir }} /**/*.jsx' ' {{ target_dir }} /**/*.js'
2327
2428# Run the Codemod AI Workflow WITHOUT the AI step
2529# Usage: just run-workflow ../my-project/src
2630run-workflow target_dir : build
27- yarn dlx codemod@latest run . --target {{ target_dir}}
31+ yarn dlx codemod@latest run . --target {{ target_dir }}
2832
2933# Run the Codemod AI Workflow WITH the AI step turned on
3034# Usage: just run-workflow-ai ../my-project/src
3135run-workflow-ai target_dir : build
32- yarn dlx codemod@latest run . --target {{ target_dir}} --autoAiReview=true
36+ yarn dlx codemod@latest run . --target {{ target_dir }} --autoAiReview=true
You can’t perform that action at this time.
0 commit comments