react-drag-drop-files
Version:
Light React Drag & Drop files and images library styled by styled-components
122 lines (121 loc) • 3.41 kB
JSON
{
"name": "react-drag-drop-files",
"version": "3.1.0",
"description": "Light React Drag & Drop files and images library styled by styled-components",
"author": "Karim <karimmokhtar28@gmail.com>",
"license": "MIT",
"private": false,
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.es.js"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs.js"
}
}
},
"scripts": {
"build": "rollup -c && tsc --emitDeclarationOnly && cp dist/src/index.d.ts dist/index.d.ts && cp dist/src/FileUploader.d.ts dist/FileUploader.d.ts",
"build-watch": "rollup -c -w",
"start-playground": "cd playground && npm run start",
"install-all": "yarn install && cd playground && npm i",
"dev": "npm-run-all --parallel build-watch start-playground",
"deploy:npm": "yarn run build && npm publish",
"lint:check": "eslint --ext .ts --ext .tsx .",
"lint:fix": "eslint --fix --ext .ts --ext .tsx .",
"test": "jest"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"keywords": [
"light-react",
"react",
"react-drag-drop",
"react-select-file",
"drag",
"drop",
"upload",
"select",
"files",
"images",
"styled-compomnets"
],
"repository": {
"type": "git",
"url": "https://github.com/KarimMokhtar/react-drag-drop-files"
},
"homepage": "https://github.com/KarimMokhtar/react-drag-drop-files",
"contributors": [
"Karim Mokhtar <karimmokhtar28@gmail.com>"
],
"readme": "README.md",
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"dependencies": {
"prop-types": "^15.7.2",
"styled-components": "^6.1.11"
},
"peerDependencies": {
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
"devDependencies": {
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.15.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-typescript": "^12.1.4",
"@svgr/rollup": "^5.5.0",
"@testing-library/jest-dom": "^5.16.3",
"@testing-library/react": "^12.1.4",
"@testing-library/user-event": "^12.8.3",
"@types/jest": "^27.0.1",
"@types/node": "^15.12.4",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.14",
"@types/styled-components": "^5.1.10",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^7.32.0",
"eslint-config-airbnb-typescript": "^16.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.25.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"react-scripts": "4.0.3",
"rollup": "2.0.1",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.3.4",
"web-vitals": "^1.1.2"
},
"volta": {
"node": "14.17.6",
"yarn": "1.22.11"
}
}