diff --git a/package.json b/package.json index 69e5c7c..46ade5d 100644 --- a/package.json +++ b/package.json @@ -43,9 +43,13 @@ "rimraf": "^4.4.0", "secret-handshake-ext": "~0.0.11", "secret-stack": "~8.1.0", - "ssb-box": "^1.0.1" + "ssb-box": "^1.0.1", + "typescript": "^5.4.5" }, "scripts": { + "clean-check": "tsc --build --clean", + "prepublishOnly": "npm run clean-check && tsc --build", + "postpublish": "npm run clean-check", "test": "node --test", "format-code": "prettier --write \"(lib|test)/**/*.js\"", "format-code-staged": "pretty-quick --staged --pattern \"(lib|test)/**/*.js\"",