From 5ce285dde7509c083c19c5ae64eacd6ed6626d04 Mon Sep 17 00:00:00 2001 From: mgendron-equisofte Date: Thu, 15 Aug 2019 14:43:40 -0400 Subject: [PATCH] TS Typings Core setup --- packages/react/package.json | 1 + packages/react/tsconfig.json | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react/package.json b/packages/react/package.json index 2ecc0956f5..e82c997816 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -4,6 +4,7 @@ "description": "React implementation of the Equisoft design system.", "license": "MIT", "main": "dist/design-elements-react.cjs.js", + "types": "./dist/index.d.ts", "scripts": { "build": "./scripts/build.sh", "prepublishOnly": "./scripts/prepublishOnly.sh", diff --git a/packages/react/tsconfig.json b/packages/react/tsconfig.json index 1ec48afd3a..556c29ea45 100644 --- a/packages/react/tsconfig.json +++ b/packages/react/tsconfig.json @@ -10,7 +10,9 @@ "sourceMap": true, "baseUrl": "./src/", "paths": {}, - "outDir": "./dist" + "outDir": "./dist", + "declaration": true, + "declarationDir": "./dist" }, "include": [ "src/**/*"