Commit 25f10cb
committed
fix: declare @nrfcloud/validate-with-typebox as a runtime dependency
`problemResponse.ts`, `validateInput.ts` and `validateResponse.ts` import
`@nrfcloud/validate-with-typebox`, but it was declared as a devDependency, so it
is missing from the published package's dependency tree.
This did not surface while the package was published to JSR: JSR's NPM
compatibility build derives the dependency list from the actual imports, so it
published `@jsr/nrfcloud__validate-with-typebox` as a runtime dependency
regardless of how it was declared here. The NPM build publishes the declared
dependencies verbatim, so the mis-declaration became a real defect.
Consumers that do not happen to have `@nrfcloud/validate-with-typebox` in their
own dependency tree fail at import time with ERR_MODULE_NOT_FOUND.1 parent e0c3912 commit 25f10cb
2 files changed
Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
0 commit comments