Skip to content

Commit 2f5f72f

Browse files
committed
docs + changeset
1 parent 8da8331 commit 2f5f72f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/rotten-pears-count.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@codeshift/cli': minor
3+
---
4+
5+
Adds the ability to specify a comma seperated list of transforms via the -t flag

website/docs/api/codeshift-cli.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,16 @@ and run with:
3939

4040
### --transform, -t
4141

42-
The transform to run, transforms can be either a single file or directory with an index.
42+
Allows you to execute local transform file(s).
43+
44+
- Can be provided with a comma-separated list (see example below).
45+
- Transforms can be either a single file or directory containing an "index" file.
4346

4447
**example:**
4548

4649
- `$ codeshift-cli --transform codemods/my-special-mod /project/src/file.js`
4750
- `$ codeshift-cli --transform codemods/my-special-mod/index.ts /project/src/file.js`
51+
- `$ codeshift-cli --transform path/to/transform1.ts, path/to/transform2.ts, path/to/transform3.ts /project/src/file.js`
4852

4953
### --packages
5054

0 commit comments

Comments
 (0)