From f5cdcbb78812dea16ebfc2df5b807ae0aae97083 Mon Sep 17 00:00:00 2001 From: Alex Lapa Date: Thu, 7 May 2020 14:02:45 +1200 Subject: [PATCH] Generate proper types declaration file --- package.json | 6 +++--- tsconfig.json | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 8fe212c..8cb6a71 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "ink-quicksearch-input", - "version": "1.0.0", + "version": "1.0.1", "description": "Quicksearch Input Component for Ink 2", "main": "build/QuickSearchInput.js", - "types": "src/QuickSearchInput.tsx", + "types": "build/QuickSearchInput.d.ts", "author": { "name": "John O'Sullivan " }, @@ -15,7 +15,7 @@ "start": "node build/examples/ExampleDirectory.js" }, "files": [ - "src/QuickSearchInput.tsx", + "build/QuickSearchInput.d.ts", "build/QuickSearchInput.js", "tsconfig.json" ], diff --git a/tsconfig.json b/tsconfig.json index 81d939f..a458b29 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,7 +19,8 @@ "allowSyntheticDefaultImports": true, "esModuleInterop": true, "typeRoots": ["node_modules/@types"], - "jsx": "react" + "jsx": "react", + "declaration": true }, "typedocOptions": { "mode" : "modules",