ソースを参照

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"]
   }