From a04c9847fe68df6c53950d004656ea5ac974f515 Mon Sep 17 00:00:00 2001 From: pixeledcode Date: Tue, 19 Dec 2023 22:05:22 +0530 Subject: [PATCH] add module in package --- packages/opub-ui/package.json | 3 ++- packages/opub-ui/vite.config.ts | 3 --- packages/opub-viz/package.json | 3 ++- packages/opub-viz/rollup.config.mjs | 1 + 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/opub-ui/package.json b/packages/opub-ui/package.json index 950d3ca2..6ba189d3 100644 --- a/packages/opub-ui/package.json +++ b/packages/opub-ui/package.json @@ -1,7 +1,7 @@ { "name": "opub-ui", "description": "OPub UI Library", - "version": "0.0.97", + "version": "0.0.98", "private": false, "license": "MIT", "author": "CivicDataLab ", @@ -24,6 +24,7 @@ ], "sideEffects": false, "main": "dist/index.js", + "module": "dist/index.js", "types": "dist/ts/index.d.ts", "files": [ "dist", diff --git a/packages/opub-ui/vite.config.ts b/packages/opub-ui/vite.config.ts index cbf75084..833b64bc 100644 --- a/packages/opub-ui/vite.config.ts +++ b/packages/opub-ui/vite.config.ts @@ -12,9 +12,6 @@ export default defineConfig(() => ({ globals: true, environment: 'happy-dom', }, - resolve: { - preserveSymlinks: true, - }, css: { preprocessorOptions: { scss: { diff --git a/packages/opub-viz/package.json b/packages/opub-viz/package.json index 660ea707..bd7eee43 100644 --- a/packages/opub-viz/package.json +++ b/packages/opub-viz/package.json @@ -24,6 +24,7 @@ ], "sideEffects": false, "main": "dist/index.js", + "module": "dist/index.js", "types": "dist/ts/index.d.ts", "files": [ "dist", @@ -63,7 +64,7 @@ "echarts-for-react": "^3.0.2", "leaflet": "^1.9.4", "lucide-react": "^0.268.0", - "opub-ui": "^0.0.97", + "opub-ui": "^0.0.98", "react-leaflet": "^4.2.1", "tailwind-merge": "^1.14.0", "tailwindcss-animate": "^1.0.7" diff --git a/packages/opub-viz/rollup.config.mjs b/packages/opub-viz/rollup.config.mjs index 98e678e7..484e1f2b 100644 --- a/packages/opub-viz/rollup.config.mjs +++ b/packages/opub-viz/rollup.config.mjs @@ -51,6 +51,7 @@ const getPlugins = () => { 'node_modules', 'build', 'dist', + 'viteDist', 'scripts', '.storybook', '**/*.stories.tsx',