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:
1 parent
82d2392e31
commit
b1325199db
2 files changed
+2
-2
No files matched your search
@@ -35,7 +35,7 @@
|
|||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"test:unit": "vitest run",
|
"test:unit": "vitest run",
|
||||||
"coverage": "vitest run --coverage",
|
"coverage": "vitest run --coverage",
|
||||||
"prepublishOnly": "tsc --noEmit && tsup"
|
"prepublishOnly": "tsc --noEmit && vitest run && tsup"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@modelcontextprotocol/sdk": "^1.29.0",
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"test:unit": "vitest run",
|
"test:unit": "vitest run",
|
||||||
"coverage": "vitest run --coverage",
|
"coverage": "vitest run --coverage",
|
||||||
"prepublishOnly": "tsc --noEmit && tsup"
|
"prepublishOnly": "tsc --noEmit && vitest run && tsup"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@modelcontextprotocol/sdk": "^1.29.0",
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
||||||
|
|||||||
Reference in new issue
Block a user