package.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "name": "file-selector",
  3. "version": "0.6.0",
  4. "description": "Convert DataTransfer object to a list of File objects",
  5. "main": "./dist/index.js",
  6. "module": "./dist/es5/index.js",
  7. "es2015": "./dist/es2015/index.js",
  8. "typings": "./dist/index.d.ts",
  9. "files": [
  10. "dist/**/*",
  11. "src/*",
  12. "!*.spec.*",
  13. "LICENSE"
  14. ],
  15. "keywords": [
  16. "drag-and-drop",
  17. "html5",
  18. "file-api",
  19. "DataTransfer",
  20. "File"
  21. ],
  22. "homepage": "https://github.com/react-dropzone/file-selector",
  23. "license": "MIT",
  24. "author": {
  25. "name": "Roland Groza",
  26. "email": "rolandjitsu@gmail.com"
  27. },
  28. "repository": {
  29. "type": "git",
  30. "url": "https://github.com/react-dropzone/file-selector.git"
  31. },
  32. "scripts": {
  33. "prebuild": "yarn run clean",
  34. "build": "npm-run-all -s compile build:umd",
  35. "build:umd": "rollup -c ./rollup.config.js",
  36. "compile": "npm-run-all -p compile:es2015 compile:es5 compile:cjs compile:types",
  37. "compile:es2015": "tsc -p ./tsconfig.es2015.json",
  38. "compile:es5": "tsc -p ./tsconfig.es5.json",
  39. "compile:cjs": "tsc -p ./tsconfig.cjs.json",
  40. "compile:types": "tsc -p ./tsconfig.types.json",
  41. "clean": "rm -rf dist/*",
  42. "lint": "tslint -c tslint.json -p ./tsconfig.spec.json -t stylish",
  43. "lint:fix": "yarn run lint -- --fix",
  44. "pretest:cov": "yarn run lint",
  45. "test:cov": "jest --coverage",
  46. "test": "jest --watch"
  47. },
  48. "dependencies": {
  49. "tslib": "^2.4.0"
  50. },
  51. "devDependencies": {
  52. "@babel/core": "^7.17.10",
  53. "@rollup/plugin-commonjs": "^22.0.0",
  54. "@rollup/plugin-node-resolve": "^13.2.1",
  55. "@types/jest": "^27.4.1",
  56. "@types/node": "^17.0.30",
  57. "babel-jest": "^28.0.3",
  58. "camelcase": "^6.3.0",
  59. "jest": "^28.0.3",
  60. "jest-environment-jsdom": "^28.0.2",
  61. "npm-run-all": "^4.1.5",
  62. "rollup": "^2.70.2",
  63. "rollup-plugin-sourcemaps": "^0.6.3",
  64. "rollup-plugin-terser": "^7.0.2",
  65. "ts-jest": "next",
  66. "tslint": "^6.1.3",
  67. "typescript": "^4.6.4"
  68. },
  69. "engines": {
  70. "node": ">= 12"
  71. }
  72. }