From 301b156d93d0a3a4682d778aec0e68718dc8bc64 Mon Sep 17 00:00:00 2001 From: Carlos Santos Date: Tue, 19 Mar 2024 10:30:53 -0300 Subject: [PATCH] fix: build types --- package.json | 2 +- tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 064ae836..51297573 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "postbuild": "./node_modules/typescript/bin/tsc --emitDeclarationOnly --declaration", "watch": "concurrently -n code,types \"yarn watch:code\" \"yarn watch:types\"", "watch:code": "node ./.esbuild/watch.js", - "watch:types": "./node_modules/typescript/bin/tsc --watch --outDir dist", + "watch:types": "./node_modules/typescript/bin/tsc --watch --out ./dist/index.d.ts", "test:unit": "jest", "test:unit:watch": "jest --watch", "test:unit:coverage": "jest --coverage", diff --git a/tsconfig.json b/tsconfig.json index 33b81dee..91e90279 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2020", "module": "ES2020", - "outDir": "./lib", + "outFile": "./lib/index.d.ts", "lib": ["ES2020", "DOM"], "preserveWatchOutput": true, "emitDeclarationOnly": true, @@ -14,7 +14,7 @@ "allowJs": true, }, "include": [ - "./src" + "./src/**/*.ts" ], "exclude": [ "./src/**/*.test.ts",