Commit 996a371
committed
Exclude old/ compat tests from published @fedify/uri-template
The package previously shipped the `old/` directory and pointed
package consumers at `deno task test:old`, but those compatibility
tests only make sense inside the Fedify monorepo: they import from
`old/url-template.test.ts` and `old/uri-template-router.test.ts`,
and the `test:old` task lives in the workspace's *deno.json*, not
in the published artifact.
Drop the directory from both publish paths and rewrite the README
pointer so it directs readers to the source repository instead of
to a task they cannot run:
- `package.json` gains a `files` allowlist of `dist`, `package.json`,
and `README.md`, mirroring the `@fedify/postgres` layout.
- `deno.json`'s `publish.exclude` adds `old/` alongside the other
development-only directories.
- *README.md* replaces the `deno task test:old` snippet with a
short note that the comparison tests live under
*packages/uri-template/old/* in the source repository and are
intentionally not part of the published package.
Reported by CodeRabbit in
#758 (2026-05-11).
Assisted-by: Claude Opus 4.7 (1M context)1 parent 2c1d58a commit 996a371
3 files changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
0 commit comments