extract ui to lib
This commit is contained in:
60
package.json
Normal file
60
package.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"name": "@panic/web-ui",
|
||||
"version": "0.1.2",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js"
|
||||
},
|
||||
"./components/MDXEditorField": {
|
||||
"types": "./dist/components/MDXEditorField.d.ts",
|
||||
"import": "./dist/components/MDXEditorField.js"
|
||||
},
|
||||
"./styles/base.css": "./dist/styles/base.css",
|
||||
"./styles/components.css": "./dist/styles/components.css",
|
||||
"./styles/utilities.css": "./dist/styles/utilities.css",
|
||||
"./tailwind-preset": "./dist/tailwind-preset.cjs"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"clean": "rm -rf dist",
|
||||
"build": "yarn clean && vite build && tsc -p tsconfig.build.json && mkdir -p dist/styles && cp src/styles/base.css dist/styles/base.css && tailwindcss -c tailwind.build.config.cjs -i src/styles/components.css -o dist/styles/components.css --minify && tailwindcss -c tailwind.build.config.cjs -i src/styles/utilities.css -o dist/styles/utilities.css --minify && cp tailwind-preset.cjs dist/tailwind-preset.cjs",
|
||||
"prepublishOnly": "yarn build",
|
||||
"publish:nexus": "npm publish --registry ${NEXUS_NPM_REGISTRY:-https://nexus.beatrice.wtf/repository/npm-hosted/}"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://nexus.beatrice.wtf/repository/npm-hosted/",
|
||||
"access": "restricted"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@heroicons/react": "^2.2.0",
|
||||
"@mdxeditor/editor": "^3.52.4",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"react-router-dom": "^7.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@mdxeditor/editor": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@heroicons/react": "^2.2.0",
|
||||
"@mdxeditor/editor": "^3.52.4",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0",
|
||||
"@vitejs/plugin-react": "^5.0.0",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"react-router-dom": "^7.0.0",
|
||||
"tailwindcss": "^3.4.16",
|
||||
"typescript": "^5.6.2",
|
||||
"vite": "^7.0.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user