Updated packages and deps

This commit is contained in:
Sambo Chea 2022-05-17 08:37:44 +07:00
parent 19b886e222
commit ea06b0d706
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490
4 changed files with 812 additions and 28 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@cubetiq/muui",
"version": "0.0.1",
"version": "0.0.1-alpha.1",
"author": {
"name": "Sambo Chea",
"email": "sombochea@cubetiqs.com"
@ -15,37 +15,46 @@
"license": "MIT",
"main": "./dist/muui-vite.umd.js",
"module": "./dist/muui-vite.es.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/muui-vite.es.js",
"require": "./dist/muui-vite.umd.js"
}
},
"files": [
"dist"
],
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"test": "vitest run",
"watch": "vitest",
"coverage": "vitest run --coverage"
"coverage": "vitest run --coverage",
"prepack": "json -f package.json -I -e \"delete this.devDependencies; delete this.dependencies\""
},
"peerDependencies": {
"@emotion/react": "^11.x",
"@emotion/styled": "^11.x",
"@mui/icons-material": "^5.x",
"@mui/material": "^5.x",
"react": "^16.8.0 || 17.x || 18.x",
"react-dom": "^16.8.0 || 17.x | 18.x"
},
"peerDependencies": {},
"devDependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0",
"@types/node": "^17.0.34",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@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",
"vitest": "^0.12.6",
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/icons-material": "^5.6.2",
"@mui/material": "^5.7.0"
"vite-plugin-dts": "^1.1.1",
"vitest": "^0.12.6"
},
"browserslist": {
"production": [
@ -73,8 +82,15 @@
"sourceType": "module"
}
},
"dependencies": {},
"dependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/icons-material": "^5.6.2",
"@mui/material": "^5.7.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"publishConfig": {
"access": "public"
}
}
}

View File

@ -1,13 +1,15 @@
import * as path from "path";
import * as path from "node:path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import dts from 'vite-plugin-dts';
// https://vitejs.dev/config/
export default defineConfig({
build: {
lib: {
entry: path.resolve(__dirname, "src/lib/index.tsx"),
entry: path.resolve(__dirname, "src/lib/index.ts"),
name: "CUBETIQ MUUI",
formats: ['es', 'umd'],
fileName: (format) => `muui-vite.${format}.js`,
},
rollupOptions: {
@ -21,5 +23,7 @@ export default defineConfig({
},
},
},
plugins: [react()],
plugins: [react(),dts({
insertTypesEntry: true
})],
});

790
yarn.lock

File diff suppressed because it is too large Load Diff