diff --git a/typescript/.npmignore b/typescript/.npmignore
new file mode 100644
index 00000000..db7ce4fb
--- /dev/null
+++ b/typescript/.npmignore
@@ -0,0 +1,3 @@
+**/*.ts
+!**/*.d.ts
+**/*.map
diff --git a/typescript/package.json b/typescript/package.json
index 14dca3b5..38135c55 100644
--- a/typescript/package.json
+++ b/typescript/package.json
@@ -26,7 +26,6 @@
     ".": "./dist/index.js"
   },
   "scripts": {
-    "postinstall": "npm run build",
     "remove-build": "rm -rf dist",
     "build": "npm run remove-build && tsc",
     "watch": "tsc -w",
@@ -38,7 +37,7 @@
     "jasmine": "^4.0.2",
     "typescript": "^4.5.5"
   },
-  "publishConfig":{
-    "registry":"https://wombat-dressing-room.appspot.com"
+  "publishConfig": {
+    "registry": "https://wombat-dressing-room.appspot.com"
   }
 }