Skip to content

Commit

Permalink
docs(migration-guide): multiline codemod commands (#4116)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbng committed Sep 3, 2022
1 parent f6f211f commit 292f021
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions docs/guides/migrating-to-react-query-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,17 @@ You can easily apply it by using one (or both) of the following commands:
If you want to run it against `.js` or `.jsx` files, please use the command below:

```
npx jscodeshift ./path/to/src/
--extensions=js,jsx
npx jscodeshift ./path/to/src/ \
--extensions=js,jsx \
--transform=./node_modules/@tanstack/react-query/codemods/v4/replace-import-specifier.js
```

If you want to run it against `.ts` or `.tsx` files, please use the command below:

```
npx jscodeshift ./path/to/src/
--extensions=ts,tsx
--parser=tsx
npx jscodeshift ./path/to/src/ \
--extensions=ts,tsx \
--parser=tsx \
--transform=./node_modules/@tanstack/react-query/codemods/v4/replace-import-specifier.js
```

Expand Down Expand Up @@ -73,17 +72,17 @@ You can easily apply it by using one (or both) of the following commands:
If you want to run it against `.js` or `.jsx` files, please use the command below:

```
npx jscodeshift ./path/to/src/
--extensions=js,jsx
npx jscodeshift ./path/to/src/ \
--extensions=js,jsx \
--transform=./node_modules/@tanstack/react-query/codemods/v4/key-transformation.js
```

If you want to run it against `.ts` or `.tsx` files, please use the command below:

```
npx jscodeshift ./path/to/src/
--extensions=ts,tsx
--parser=tsx
npx jscodeshift ./path/to/src/ \
--extensions=ts,tsx \
--parser=tsx \
--transform=./node_modules/@tanstack/react-query/codemods/v4/key-transformation.js
```

Expand Down

0 comments on commit 292f021

Please sign in to comment.