From d2838808b81de5ff7a3398003693b9a285f4d923 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Tue, 17 May 2022 08:44:41 +0700 Subject: [PATCH] Updated the package.json --- package.json | 14 +++----------- vite.config.ts | 6 +++--- vitest.config.js | 8 -------- 3 files changed, 6 insertions(+), 22 deletions(-) delete mode 100644 vitest.config.js diff --git a/package.json b/package.json index 3203c84..6849473 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cubetiq/muui", - "version": "0.0.1-alpha.1", + "version": "0.0.1-alpha.2", "author": { "name": "Sambo Chea", "email": "sombochea@cubetiqs.com" @@ -27,12 +27,7 @@ ], "scripts": { "dev": "vite", - "build": "tsc && vite build", - "preview": "vite preview", - "test": "vitest run", - "watch": "vitest", - "coverage": "vitest run --coverage", - "prepack": "json -f package.json -I -e \"delete this.devDependencies; delete this.dependencies\"" + "build": "tsc && vite build" }, "peerDependencies": { "@emotion/react": "^11.x", @@ -49,12 +44,9 @@ "@vitejs/plugin-react": "^1.3.0", "eslint": "^8.15.0", "eslint-plugin-react": "^7.29.4", - "jsdom": "^19.0.0", - "json": "^11.0.0", "typescript": "^4.6.3", "vite": "^2.9.9", "vite-plugin-dts": "^1.1.1", - "vitest": "^0.12.6" }, "browserslist": { "production": [ @@ -93,4 +85,4 @@ "publishConfig": { "access": "public" } -} +} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 2358751..dbe3054 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,13 +8,13 @@ export default defineConfig({ build: { lib: { entry: path.resolve(__dirname, "src/lib/index.ts"), - name: "CUBETIQ MUUI", + name: "muui", formats: ['es', 'umd'], - fileName: (format) => `muui-vite.${format}.js`, + fileName: (format) => `muui.${format}.js`, }, rollupOptions: { // externalize deps that shouldn't be bundled - external: ["react", "react-dom"], + external: ["react", "react-dom", "@emotion/react", "@emotion/styled", "@mui/icons-material", "@mui/material"], output: { // Provide global variables to use in the UMD build for externalized deps globals: { diff --git a/vitest.config.js b/vitest.config.js deleted file mode 100644 index 1225576..0000000 --- a/vitest.config.js +++ /dev/null @@ -1,8 +0,0 @@ -import { defineConfig } from "vite"; - -export default defineConfig({ - test: { - globals: false, - environment: "jsdom", - }, -});