also looking at this
fix(build): keep test declarations out of the published SDK
#40
1 file
+8
-1
| @@ -11,7 +11,14 @@ | ||
| 11 | 11 | "include": [ |
| 12 | 12 | "src" |
| 13 | 13 | ], |
| 14 | // Test sources emit declarations too, and `dist/package.test.d.ts` was | |
| 15 | // shipping in the published package. Excluding the directory is not enough: | |
| 16 | // `src/package.test.ts` sits beside the module it tests, which is the | |
| 17 | // convention the rest of the repo uses too. Match ts-maps and exclude by | |
| 18 | // pattern. | |
| 14 | 19 | "exclude": [ |
| 15 | "src/__tests__/**" | |
| 20 | "src/__tests__/**", | |
| 21 | "src/**/*.test.ts", | |
| 22 | "src/**/*.spec.ts" | |
| 16 | 23 | ] |
| 17 | 24 | } |