Commit 92ef8c8
authored
feat: remove sourcemaps (#1963)
## PR Checklist
- [x] Addresses an existing open issue: fixes #1909
- [x] That issue was marked as [`status: accepting
prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in
[CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md)
were taken
## Overview
Per discussions linked in the issue, removes sourcemaps to significantly
reduce the size of output files.
| Target | Package Size | Unpacked Size | Total Files |
| ------------------- | ------------ | ------------- | ----------- |
| `main` | 106.7 kB | 609.9 kB | 277 |
| `remove-sourcemaps` | 54.1 kB | 369.9 kB | 186 |
| Comparison | 49% smaller | 39% smaller | 32% smaller |
Raw `npm pack` output on `main`:
```plaintext
npm notice Tarball Details
npm notice name: create-typescript-app
npm notice version: 2.2.0
npm notice filename: create-typescript-app-2.2.0.tgz
npm notice package size: 106.7 kB
npm notice unpacked size: 609.9 kB
npm notice shasum: dd0439e3a977c55bbfaa8449f73799314b925368
npm notice integrity: sha512-Z0nBEgLroJY5p[...]yi9LJdG28f9DA==
npm notice total files: 277
```
Raw `npm pack` output with this change:
```plaintext
npm notice Tarball Details
npm notice name: create-typescript-app
npm notice version: 2.2.0
npm notice filename: create-typescript-app-2.2.0.tgz
npm notice package size: 54.1 kB
npm notice unpacked size: 369.9 kB
npm notice shasum: 8f92517ecbd9dbffdba72b5dd11aeceaf7d61b9b
npm notice integrity: sha512-OaNzBaDi41IH5[...]HospZHaW1trEQ==
npm notice total files: 186
```1 parent 2377188 commit 92ef8c8
File tree
7 files changed
+3
-10
lines changed- docs
- src/blocks
7 files changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
178 | | - | |
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
| |||
279 | 277 | | |
280 | 278 | | |
281 | 279 | | |
282 | | - | |
283 | 280 | | |
284 | 281 | | |
285 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
0 commit comments