build: run unit tests in prepublishOnly

prepublishOnly only typechecked and bundled, so a compiling but failing
change could reach npm. Insert `vitest run` (unit only, no Docker) before
the bundle step in both packages, gating publish on a green unit suite.
This commit is contained in:
admin committed 2026-06-16 23:49:18 +05:00
1 parent 82d2392e31
commit b1325199db
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@
"typecheck": "tsc --noEmit",
"test:unit": "vitest run",
"coverage": "vitest run --coverage",
"prepublishOnly": "tsc --noEmit && tsup"
"prepublishOnly": "tsc --noEmit && vitest run && tsup"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0",
+1 -1
View File
@@ -17,7 +17,7 @@
"typecheck": "tsc --noEmit",
"test:unit": "vitest run",
"coverage": "vitest run --coverage",
"prepublishOnly": "tsc --noEmit && tsup"
"prepublishOnly": "tsc --noEmit && vitest run && tsup"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0",