From 6938cc1da64d29fca5d19160df39301868a95dba Mon Sep 17 00:00:00 2001 From: adriancofie <38888889+adriancofie@users.noreply.github.com> Date: Mon, 23 Feb 2026 10:08:21 -0500 Subject: [PATCH] (#10) Adjsut Typescript configuration * Changed ES2018 to ES2020 * Added declarationMap: true * Replaced the @/* catch-all with the specific aliases: @components/*, @hooks/*, @utils/* Closes #10 --- tsconfig.build.json | 1 + tsconfig.json | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tsconfig.build.json b/tsconfig.build.json index fce7ed3..40ef7bc 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "declaration": true, + "declarationMap": true, "declarationDir": "dist/types", "emitDeclarationOnly": true }, diff --git a/tsconfig.json b/tsconfig.json index e8e0078..040f19a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,10 @@ { "compilerOptions": { - "target": "ES2018", + "target": "ES2020", "module": "ESNext", "lib": ["DOM", "DOM.Iterable", "ESNext"], "declaration": true, + "declarationMap": true, "declarationDir": "dist/types", "strict": true, "noUnusedLocals": true, @@ -19,7 +20,9 @@ "isolatedModules": true, "baseUrl": ".", "paths": { - "@/*": ["src/*"] + "@components/*": ["src/components/*"], + "@hooks/*": ["src/hooks/*"], + "@utils/*": ["src/utils/*"] } }, "include": ["src"],