From c258ad5a616777ac5ea9be31df36c20c9abf50da Mon Sep 17 00:00:00 2001 From: Rushi Vishavadia Date: Sat, 21 Dec 2024 13:19:05 +0530 Subject: [PATCH] add preinstall --- src/icons/package.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/icons/package.json b/src/icons/package.json index 3e2f58e7..55f2b81b 100644 --- a/src/icons/package.json +++ b/src/icons/package.json @@ -6,8 +6,14 @@ "type": "git", "url": "git://github.com/xola/ui-kit.git" }, - "main": "./index.js", + "files": [ + "build", + "build/icons.es.js" + ], + "main": "build/icons.es.js", + "module": "build/icons.es.js", "scripts": { + "preinstall": "vite build", "prepare": "vite build", "build": "vite build", "format": "prettier --write -l src",