From 31efd1fa1a3e502607daef58b7cb27049fc66eb8 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sun, 3 Nov 2024 15:36:02 -0800 Subject: [PATCH] build: use `compilerOptions.paths` to alias types --- tsconfig.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tsconfig.json b/tsconfig.json index 4501bf8f..bb95ddd8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,6 +12,10 @@ "noUnusedLocals": true, "noUnusedParameters": true, "strict": true, + "paths": { + "carbon-components-svelte": ["./types"], + "carbon-components-svelte/*": ["./types/*"] + } }, "include": ["src", "tests"] } \ No newline at end of file