From 00188a0dc848c48fac45de245d1e021f370a84a3 Mon Sep 17 00:00:00 2001 From: Igor Suvorov Date: Wed, 20 Mar 2024 19:54:26 +0200 Subject: [PATCH] docs: add information about tsconfig option (#1051) --- docs/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/README.md b/docs/README.md index 851463209..f123ed6b4 100644 --- a/docs/README.md +++ b/docs/README.md @@ -597,6 +597,16 @@ await build({ For all available options for the `build` function, please see [the API docs](https://paka.dev/npm/tsup). +### Using custom tsconfig.json + +You can also use custom tsconfig.json file configurations by using the `--tsconfig` flag: + +```bash +tsup --tsconfig tsconfig.prod.json +``` + +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. + ## Troubleshooting ### error: No matching export in "xxx.ts" for import "xxx"