ReviewOS

also looking at this

craft-native/craft

fix(build): keep test declarations out of the published SDK

#40
Merged glennmichael123 wants to merge fix/integration-job-verifications into main
1 file +8 -1
packages/typescript/tsconfig.build.jsonmodified+8-1
Changes to packages/typescript/tsconfig.build.json
@@ -11,7 +11,14 @@
1111 "include": [
1212 "src"
1313 ],
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.
1419 "exclude": [
15 "src/__tests__/**"
20 "src/__tests__/**",
21 "src/**/*.test.ts",
22 "src/**/*.spec.ts"
1623 ]
1724}