mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 13:43:59 -05:00
Updated for deployment
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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
471
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
42
package.json
42
package.json
@@ -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"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user