From 27bff882c26ba5a2c4e24f8ecf8156c8b4e44dd1 Mon Sep 17 00:00:00 2001 From: Mark Terrel Date: Fri, 16 Nov 2018 11:00:27 -0700 Subject: [PATCH] Add "types" field to package.json Gives the TypeScript compiler info on where to find types for the package. Fixes #57. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 895a1dbb..e727e0e5 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.9.1", "description": "Database using JSON file as storage for Node.JS", "main": "dist/JsonDB.js", + "types": "dist/types/JsonDB.d.ts", "scripts": { "test": "jest --coverage", "build": "babel src --out-dir dist --extensions \".ts,.tsx\" && tsc --emitDeclarationOnly",