Commit b6081cc
fix: stop publishing the API route (#588)
A Route Handler cannot be statically exported, and `buildWebsite` already leaves `src/app/api`
behind when it copies the app — so it only ever travelled as dead weight. With its test that is
37 kB, and `files` now says so, which is also what the copy's exclusion claimed to mirror.
`src/app/[...slug]/page.test.ts` still ships. Nothing under a bracketed directory can be
excluded through `files` under pnpm — proven on a four-file reproduction: `npm pack` honours
`!**/*.test.*` there, `pnpm pack` does not, and neither a directory negation nor an escaped
bracket reaches it.
Claude-Session: https://claude.ai/code/session_01HfCBpbazo3fr1n2EUXNyh5
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 8dbee9b commit b6081cc
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
0 commit comments