Description: emit types in build dir, remove watch option
Forwarded: no
Last-Update: 2026-02-26
Author: Israel Galadima <izzygaladima@gmail.com>
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -6,9 +6,8 @@
         "sourceMap": true,
         "moduleResolution": "node",
         "outDir": "build",
-        "watch": false,
         "declaration": true,
-        "declarationDir": "typings",
+        "declarationDir": "build/typings",
         "removeComments":false,
         "noImplicitAny": true,
         "typeRoots": [
@@ -25,4 +24,4 @@
       "typings",
       "test"
     ]
-}
\ No newline at end of file
+}
--- a/package.json
+++ b/package.json
@@ -43,7 +43,7 @@
     "tslint": "5.18.0",
     "typescript": "^3.2.1"
   },
-  "typings": "typings/smartbuffer.d.ts",
+  "typings": "build/typings/smartbuffer.d.ts",
   "dependencies": {},
   "scripts": {
     "prepublish": "npm install -g typescript && npm run build",
