From a8c4bcc333d3ee522536f28102e97d40a8ae87f3 Mon Sep 17 00:00:00 2001 From: Carter Bertolini Date: Tue, 14 Nov 2023 16:21:42 -0500 Subject: [PATCH] Add declaration files and point npm to dist. --- package.json | 3 ++- tsconfig.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 72f571e..079a086 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "@finvis/usxi", "version": "1.1.0", "description": "", - "main": "index.js", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "scripts": { "start": "node dist/index.js", "build": "tsc", diff --git a/tsconfig.json b/tsconfig.json index d038d57..a1a5632 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "@tsconfig/node-lts/tsconfig.json", "compilerOptions": { - "outDir": "dist" + "outDir": "dist", + "declaration": true, }, "include": ["src"], "exclude": ["node_modules"]