@saberlayer/avatar-upload
Version:
A React avatar upload component with image crop feature based on Ant Design
66 lines (65 loc) • 1.74 kB
JSON
{
"name": "@saberlayer/avatar-upload",
"version": "1.1.0",
"description": "A React avatar upload component with image crop feature based on Ant Design",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"unpkg": "dist/index.umd.js",
"types": "dist/index.d.ts",
"style": "dist/index.css",
"files": [
"dist"
],
"sideEffects": [
"*.css"
],
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && rollup -c",
"dev": "rollup -c -w",
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"prepublishOnly": "npm run build",
"test": "echo \"Error: no test specified\" && exit 1"
},
"peerDependencies": {
"antd": "^4.0.0 || ^5.0.0",
"antd-img-crop": "^4.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@babel/core": "^7.22.0",
"@babel/preset-env": "^7.22.0",
"@babel/preset-react": "^7.22.0",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@types/react": "^18.0.0",
"antd": "^5.0.0",
"antd-img-crop": "^4.12.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rimraf": "^5.0.10",
"rollup": "^2.79.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^5.8.2"
},
"keywords": [
"react",
"avatar",
"upload",
"antd",
"image-crop"
],
"author": "saberlayer",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/saberlayer/avatar-upload-component"
},
"publishConfig": {
"access": "public"
}
}