From 83cb2a721844b5dd846df439373299f79658ea3c Mon Sep 17 00:00:00 2001 From: Charlie Andrews-Jubelt Date: Mon, 5 Sep 2022 20:31:04 -0700 Subject: [PATCH] fix(types): include types in dist (#10) so the code can be consumed as a TS library by other TS projects --- package.json | 1 + tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index a693e91..3508067 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "@revo-market/farm-bot-apy", "version": "0.0.1", "main": "dist/index.js", + "types": "dist/index.d.ts", "repository": "git@github.com:revo-market/farm-bot-apy.git", "author": "Revo Inc", "license": "Apache-2.0", diff --git a/tsconfig.json b/tsconfig.json index 907bea5..189fa44 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { "esModuleInterop": true, + "declaration": true, "module": "commonjs", "moduleResolution": "node", "resolveJsonModule": true,