Skip to content

Commit be3a69f

Browse files
committed
install globally
1 parent 2166306 commit be3a69f

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

justfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ build:
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
1016
test: 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
1925
run-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
2630
run-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
3135
run-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

0 commit comments

Comments
 (0)