Skip to content

Commit

Permalink
docs: mention jsExt and tsExt options
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Oct 5, 2024
1 parent 938320f commit b0fd156
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ tsc-esm-fix [opts]
| `--dirnameVar` | Replace `__dirname` usages with `import.meta` | true |
| `--filenameVar` | Replace `__filename` var references with `import.meta` statements | true |
| `--ext` | Append extension to relative imports/re-exports | `.js` |
| `--ts-ext` | Known TS extensions | `.ts,.tsx,.mts,.mtsx,.cts,.ctsx` |
| `--js-ext` | Known JS extensions | `.js,.jsx,.mjs,.mjsx,.cjs,.cjsx` |
| `--unlink` | Remove original files if ext changes | true |
| `--fillBlank` | Fill blank files with `export {}` | false |
| `--forceDefaultExport` | Injects `export default undefined` if not present | false |
Expand Down Expand Up @@ -227,6 +229,8 @@ export interface IFixOptions {
forceDefaultExport?: boolean
sourceMap?: boolean
ext: boolean | string
tsExt: string | string[]
jsExt: string | string[]
unlink?: boolean,
debug?: boolean | IFunction
}
Expand Down

0 comments on commit b0fd156

Please sign in to comment.