Преглед на файлове

Fix npm package configuration

- Add declaration and declarationMap to generate .d.ts files
- Exclude test files from TypeScript compilation (vitest handles them)
- Ensures types field in package.json works correctly
- Removes test files from npm tarball
Robert Sweet преди 5 месеца
родител
ревизия
218c0d15f8
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      tsconfig.json

+ 3 - 1
tsconfig.json

@@ -9,13 +9,15 @@
     "esModuleInterop": true,
     "skipLibCheck": true,
     "forceConsistentCasingInFileNames": true,
+    "declaration": true,
+    "declarationMap": true,
     "baseUrl": ".",
     "paths": {
       "@/*": ["src/*"]
     }
   },
   "include": ["src/**/*"],
-  "exclude": ["node_modules"],
+  "exclude": ["node_modules", "src/**/*.test.ts"],
   "ts-node": {
     "require": ["tsconfig-paths/register"]
   }