From 57e97ea947b9005f236b2a1eb780e8c541f3e542 Mon Sep 17 00:00:00 2001 From: OfficialDakari Date: Thu, 3 Apr 2025 08:59:24 +0500 Subject: [PATCH] idk --- package.json | 12 ++++++------ vite.config.js | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index cfe3e62..90f542b 100644 --- a/package.json +++ b/package.json @@ -2,17 +2,17 @@ "name": "react-you-ui", "version": "1.0.0", "description": "Material You components for React, built on top of @material/web", - "main": "dist/index.js", - "module": "dist/index.mjs", - "types": "dist/index.d.ts", + "main": "dist/react-you-ui.esm.js", + "module": "dist/react-you-ui.umd.js", + "types": "dist/react-you-ui.d.ts", "files": [ "dist" ], "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "types": "./dist/react-you-ui.d.ts", + "import": "./dist/react-you-ui.es.js", + "require": "./dist/react-you-ui.es.js" } }, "scripts": { diff --git a/vite.config.js b/vite.config.js index 003500e..3263e62 100644 --- a/vite.config.js +++ b/vite.config.js @@ -34,6 +34,7 @@ export default defineConfig({ name: 'react-you-ui', fileName: (format) => `react-you-ui.${format}.js`, formats: ['es', 'umd'], + types: 'index.d.ts', }, }, }); \ No newline at end of file