From 80934ea378b4f85a03505f58ac79de20da62383c 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