From 60ff38d472d47e5ad9db9a6325922a8b007d1221 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Sun, 1 May 2022 20:53:51 +0200 Subject: [PATCH] Export types --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d0faf44..6ffad32 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,15 @@ "version": "1.0.2", "description": "Apply TailwindCSS utilities only if they match a constant", "main": "index.js", + "types": "index.d.ts", "scripts": { - "build": "tsc index.ts", + "build": "tsc index.ts --declaration", "prepare": "husky install && npm run build" }, + "files": [ + "index.js", + "index.d.ts" + ], "lint-staged": { "*.{js,jsx,ts,tsx,css,md}": "prettier --write --ignore-path .gitignore" },