diff --git a/package.json b/package.json
index 44e2c17c75699766d2ad043c9365a79a075348f4..bc8cb75f805768fdfc88aa5266ff6d27ea579c5a 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
     "test": "test"
   },
   "scripts": {
+    "postinstall": "tsc",
     "tsc": "tsc",
     "test": "mocha --growl --timeout 20000 test test/fast test/integration test/",
     "start": "node bin/duniter start",