Skip to content

Commit

Permalink
fixup!: specifically mention monorepos in README
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJingleheimer committed Dec 13, 2024
1 parent cdc5c41 commit 9dab933
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions recipes/correct-ts-specifiers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ NODE_OPTIONS="--experimental-import-meta-resolve" \
npx codemod@latest correct-ts-specifiers
```

### Monorepos

For best results, run this _within_ each workspace of the monorepo.

```text
project-root/
├ workspaces/
├ foo/ ←--------- RUN HERE
├ …
├ package.json
└ tsconfig.json
└ bar/ ←--------- RUN HERE
├ …
├ package.json
└ tsconfig.json
└ utils/ ←--------- RUN HERE
├ qux.js
└ zed.js
```

## Supported cases

* no file extension → `.cts`, `.mts`, `.js`, `.ts`, `.d.cts`, `.d.mts`, or `.d.ts`
Expand Down

0 comments on commit 9dab933

Please sign in to comment.