From 2566f6324dffa5aeb9fae4bcf3e2548689826c7e Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Fri, 9 Jul 2021 17:51:26 -0400 Subject: [PATCH] fix transformers docs about ttypescript and ts-patch --- website/docs/compilers.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/website/docs/compilers.md b/website/docs/compilers.md index 6b96a621b..e51348fa9 100644 --- a/website/docs/compilers.md +++ b/website/docs/compilers.md @@ -6,14 +6,16 @@ Some projects require a patched typescript compiler which adds additional featur add the ability to configure custom transformers. These are drop-in replacements for the vanilla `typescript` module and implement the same API. -For example, to use `ts-patch` and `ts-transformer-keys`, add this to your `tsconfig.json`: +For example, to use `ttypescript` and `ts-transformer-keys`, add this to your `tsconfig.json`: ```json title="tsconfig.json" { "ts-node": { - "compiler": "ts-patch" + // This can be omitted when using ts-patch + "compiler": "ttypescript" }, "compilerOptions": { + // plugin configuration is the same for both ts-patch and ttypescript "plugins": [ { "transform": "ts-transformer-keys/transformer" } ]