Updated for deployment

This commit is contained in:
2025-08-09 22:54:56 -04:00
parent f96c8e1067
commit 35a8316ea8
4 changed files with 485 additions and 35 deletions

1
.gitignore vendored
View File

@@ -6,6 +6,7 @@ node_modules
dist dist
*.local *.local
.tanstack .tanstack
*.tgz
# Editor directories and files # Editor directories and files
.vscode .vscode

471
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,24 +1,25 @@
{ {
"name": "mattrixwv-components", "name": "mattrixwv-components",
"private": true, "private": false,
"version": "0.0.0", "version": "0.0.1",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "eslint . && tsc -b && vite build", "build": "eslint . && tsc -b && vite build",
"lint": "eslint .", "lint": "eslint .",
"preview": "vite preview" "deploy": "npm run build && npm pack && npm public --access public",
"preview": "vite preview",
"versionPatch": "npm version patch",
"versionMinor": "npm version minor",
"versionMajor": "npm version major"
}, },
"peerDependencies": { "peerDependencies": {
"@headlessui/react": "^2.2.4", "@headlessui/react": "^2.2.4",
"@tailwindcss/vite": "^4.1.10",
"@types/node": "^24.0.4",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"moment": "^2.30.1", "moment": "^2.30.1",
"react": "^19.1.0", "react": "^19.1.0",
"react-dom": "^19.1.0", "react-dom": "^19.1.0",
"react-icons": "^5.5.0", "react-icons": "^5.5.0"
"tailwindcss": "^4.1.10"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.29.0", "@eslint/js": "^9.29.0",
@@ -29,11 +30,14 @@
"@types/react": "^19.1.8", "@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6", "@types/react-dom": "^19.1.6",
"@vitejs/plugin-react": "^4.5.2", "@vitejs/plugin-react": "^4.5.2",
"@tailwindcss/vite": "^4.1.10",
"@types/node": "^24.0.4",
"eslint": "^9.29.0", "eslint": "^9.29.0",
"eslint-plugin-react": "^7.37.5", "eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20", "eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.2.0", "globals": "^16.2.0",
"tailwindcss": "^4.1.10",
"typescript": "~5.8.3", "typescript": "~5.8.3",
"typescript-eslint": "^8.34.1", "typescript-eslint": "^8.34.1",
"vite": "^7.0.0", "vite": "^7.0.0",
@@ -43,5 +47,27 @@
"@tailwindcss/vite": { "@tailwindcss/vite": {
"vite": "^7.0.0" "vite": "^7.0.0"
} }
} },
"sideEffects": false,
"license": "",
"author": "Mattrixwv",
"repository": {
"type": "git",
"url": "https://bitbucket.org/Mattrixwv/mattrixwvReactComponents.git"
},
"main": "./dist/mattrixwv-components.cjs",
"module": "./dist/mattrixwv-components.js",
"types": "./dist/mattrixwv-components.d.ts",
"exports": {
".": {
"types": "./dist/mattrixwv-components.d.ts",
"require": "./dist/mattrixwv-components.cjs",
"import": "./dist/mattrixwv-components.js"
}
},
"files": [
"dist"
]
} }

View File

@@ -19,7 +19,7 @@ export default defineConfig({
dts({ dts({
include: ["lib"], include: ["lib"],
tsconfigPath: "./tsconfig.lib.json", tsconfigPath: "./tsconfig.lib.json",
outDir: "dist/types" rollupTypes: true
}) })
], ],
resolve: { resolve: {
@@ -32,7 +32,7 @@ export default defineConfig({
build: { build: {
lib: { lib: {
entry: resolve(__dirname, "lib/index.ts"), entry: resolve(__dirname, "lib/index.ts"),
formats: [ "es" ], formats: [ "cjs", "es" ],
name: "Mattrixwv Component Library" name: "Mattrixwv Component Library"
}, },
rollupOptions: { rollupOptions: {
@@ -40,7 +40,7 @@ export default defineConfig({
"react", "react",
"react-dom", "react-dom",
"react/jsx-runtime", "react/jsx-runtime",
...Object.keys(peerDependencies) ...Object.keys(peerDependencies).map(dep => dep.toString())
], ],
output: { output: {
globals: { globals: {