Skip to content

Commit

Permalink
correct usage in doc (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX authored Dec 2, 2019
1 parent d2cd36e commit fa61a52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ A collection of codemod scripts that help upgrade antd v4 using [jscodeshift](ht

```shell
# for tsx
npx -p @ant-design/codemod antd-codemod run --path src --parser tsx
npx -p @ant-design/codemod antd-codemod run --path src/**/*.tsx
npx -p @ant-design/codemod antd-codemod run --path=src --parser=tsx
npx -p @ant-design/codemod antd-codemod run --path=src/**/*.tsx

# for js
npx -p @ant-design/codemod antd-codemod run --path src
npx -p @ant-design/codemod antd-codemod run --path src/**/*.js
npx -p @ant-design/codemod antd-codemod run --path=src
npx -p @ant-design/codemod antd-codemod run --path=src/**/*.js
```

**tips**

If you are using typescript, you can use `--parser tsx` option.
If you are using typescript, you can use `--parser=tsx` option.

0 comments on commit fa61a52

Please sign in to comment.