Skip to content

Commit 00188a0

Browse files
authored
docs: add information about tsconfig option (#1051)
1 parent 83c7c7f commit 00188a0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,16 @@ await build({
597597

598598
For all available options for the `build` function, please see [the API docs](https://paka.dev/npm/tsup).
599599

600+
### Using custom tsconfig.json
601+
602+
You can also use custom tsconfig.json file configurations by using the `--tsconfig` flag:
603+
604+
```bash
605+
tsup --tsconfig tsconfig.prod.json
606+
```
607+
608+
By default, tsup try to find the `tsconfig.json` file in the current directory, if it's not found, it will use the default tsup config.
609+
600610
## Troubleshooting
601611

602612
### error: No matching export in "xxx.ts" for import "xxx"

0 commit comments

Comments
 (0)