Skip to content

Commit 25f10cb

Browse files
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

File tree

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
},
3535
"devDependencies": {
3636
"@bifravst/prettier-config": "1.1.17",
37-
"@nrfcloud/validate-with-typebox": "1.0.6",
3837
"@swc/core": "1.15.47",
3938
"@types/aws-lambda": "8.10.162",
4039
"@types/node": "25.9.5",
@@ -70,6 +69,7 @@
7069
"@middy/core": "7.7.2",
7170
"@middy/input-output-logger": "7.7.2",
7271
"@nrfcloud/problem-detail": "1.4.4",
72+
"@nrfcloud/validate-with-typebox": "1.0.6",
7373
"@sinclair/typebox": "0.34.52"
7474
}
7575
}

0 commit comments

Comments
 (0)