From 6c0233a09705a7023b5742bca30c902f3b92d65c Mon Sep 17 00:00:00 2001 From: Jacob Karlsson Date: Thu, 16 May 2024 17:08:59 +0200 Subject: [PATCH] Add types when publishing --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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\"",