diff --git a/package.json b/package.json
index 12d8a3fc601cf2988b69e7af501ad405afa50bdd..9bbe4ffccc1477c32bb22f63152afe2914f5944b 100644
--- a/package.json
+++ b/package.json
@@ -3,6 +3,9 @@
   "version": "0.0.1",
   "main": "index.js",
   "license": "MIT",
+  "scripts": {
+    "prepublish": "tsc"
+  },
   "dependencies": {
     "express": "^4.16.4",
     "express-graphql": "^0.7.1",