Prechádzať zdrojové kódy

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 mesiacov pred
rodič
commit
218c0d15f8
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  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"]
   }