Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/olive-clouds-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"blogwright": patch
"blogwright-core": patch
"blogwright-pds": patch
---

Ship smaller packages. The published tarballs no longer carry `.js.map` sourcemaps (`sourceMap` was set repo-wide in `tsconfig.base.json` and every emitted map was landing in `dist`), and `test-support.ts` — scaffolding imported only by `*.test.ts` — is now excluded from the build configs of `blogwright` and `blogwright-pds` rather than compiled into `dist`. It is still fully typechecked, since the `tsconfig.typecheck.json` files override `exclude` to `[]`.

Unpacked sizes drop by a quarter overall: `blogwright` 540.4 kB → 437.9 kB, `blogwright-core` 205.1 kB → 127.8 kB, `blogwright-pds` 99.9 kB → 58.9 kB, and the three packages together go from 183 files to 121. No runtime code changed.
2 changes: 1 addition & 1 deletion packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"types": ["node"]
},
"include": ["src/**/*"],
"exclude": ["dist", "**/*.test.ts"]
"exclude": ["dist", "**/*.test.ts", "src/test-support.ts"]
}
2 changes: 1 addition & 1 deletion packages/pds/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"types": ["node"]
},
"include": ["src/**/*"],
"exclude": ["dist", "**/*.test.ts"]
"exclude": ["dist", "**/*.test.ts", "src/test-support.ts"]
}
1 change: 0 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"noFallthroughCasesInSwitch": true,
"exactOptionalPropertyTypes": true,
"declaration": true,
"sourceMap": true,
"skipLibCheck": true
}
}