diff --git a/package.json b/package.json
index b7429b5b0d23178515ff4d4670a47640e560e5f9..265b09e8df91bc78115ed6c3d5f8b22320f1faf0 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,7 @@
     "build": "nwb build-react-component",
     "clean": "nwb clean-module",
     "lint": "eslint ./src ./__tests__",
+    "prepare": "npm run build",
     "prepublishOnly": "npm run build",
     "start": "nwb serve-react-demo",
     "test": "npm run lint && jest",