Updated the package.json
This commit is contained in:
parent
ea06b0d706
commit
d2838808b8
12
package.json
12
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": [
|
||||
|
@ -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: {
|
||||
|
@ -1,8 +0,0 @@
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: false,
|
||||
environment: "jsdom",
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue
Block a user