File: fix-tsconfig.patch

package info (click to toggle)
node-smart-buffer 4.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 400 kB
  • sloc: makefile: 5
file content (35 lines) | stat: -rw-r--r-- 920 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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",