diff --git a/.changeset/olive-clouds-repeat.md b/.changeset/olive-clouds-repeat.md new file mode 100644 index 0000000..c38820f --- /dev/null +++ b/.changeset/olive-clouds-repeat.md @@ -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. diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index 2b07fcb..06e8f0a 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -6,5 +6,5 @@ "types": ["node"] }, "include": ["src/**/*"], - "exclude": ["dist", "**/*.test.ts"] + "exclude": ["dist", "**/*.test.ts", "src/test-support.ts"] } diff --git a/packages/pds/tsconfig.json b/packages/pds/tsconfig.json index 2b07fcb..06e8f0a 100644 --- a/packages/pds/tsconfig.json +++ b/packages/pds/tsconfig.json @@ -6,5 +6,5 @@ "types": ["node"] }, "include": ["src/**/*"], - "exclude": ["dist", "**/*.test.ts"] + "exclude": ["dist", "**/*.test.ts", "src/test-support.ts"] } diff --git a/tsconfig.base.json b/tsconfig.base.json index 6542e35..67db7c0 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -14,7 +14,6 @@ "noFallthroughCasesInSwitch": true, "exactOptionalPropertyTypes": true, "declaration": true, - "sourceMap": true, "skipLibCheck": true } }