package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "name": "attr-accept",
  3. "description": "JavaScript implementation of the \"accept\" attribute for HTML5 <input type=\"file\">",
  4. "version": "2.2.2",
  5. "main": "dist/index.js",
  6. "module": "dist/es/index.js",
  7. "types": "index.d.ts",
  8. "scripts": {
  9. "clean": "rimraf ./dist",
  10. "build": "npm run clean && npm run build:cjs && npm run build:es",
  11. "build:cjs": "webpack -p",
  12. "build:es": "cross-env BABEL_ENV=es babel ./src --out-dir ./dist/es --ignore '**/*.spec.js'",
  13. "prepublish": "npm test && npm run build",
  14. "pretest": "npm run lint",
  15. "test": "mocha --compilers js:@babel/register --recursive",
  16. "test:watch": "npm test -- --watch",
  17. "lint": "eslint src/ test/",
  18. "precommit": "lint-staged",
  19. "size": "size-limit",
  20. "size:why": "size-limit --why"
  21. },
  22. "repository": {
  23. "type": "git",
  24. "url": "https://github.com/react-dropzone/attr-accept.git"
  25. },
  26. "keywords": [
  27. "html5",
  28. "input",
  29. "tag",
  30. "attribute",
  31. "attr",
  32. "accept",
  33. "file"
  34. ],
  35. "author": "Andrey Okonetchnikov @okonetchnikov",
  36. "contributors": [
  37. "Andrey Okonetchnikov <andrey@okonet.ru> (http://okonet.ru)",
  38. "Roland Groza <rolandjitsu@gmail.com>"
  39. ],
  40. "license": "MIT",
  41. "bugs": {
  42. "url": "https://github.com/react-dropzone/attr-accept/issues"
  43. },
  44. "homepage": "https://github.com/react-dropzone/attr-accept#readme",
  45. "devDependencies": {
  46. "@babel/cli": "^7.6.4",
  47. "@babel/core": "^7.10.5",
  48. "@babel/plugin-external-helpers": "^7.2.0",
  49. "@babel/plugin-proposal-do-expressions": "^7.6.0",
  50. "@babel/plugin-proposal-export-default-from": "^7.5.2",
  51. "@babel/plugin-proposal-logical-assignment-operators": "^7.2.0",
  52. "@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
  53. "@babel/plugin-proposal-optional-chaining": "^7.6.0",
  54. "@babel/plugin-proposal-pipeline-operator": "^7.5.0",
  55. "@babel/plugin-transform-runtime": "^7.6.2",
  56. "@babel/preset-env": "^7.6.3",
  57. "@babel/preset-react": "^7.6.3",
  58. "@babel/register": "^7.6.2",
  59. "@commitlint/cli": "^8.2.0",
  60. "@size-limit/preset-small-lib": "^2.1.6",
  61. "babel-eslint": "^8.0.0",
  62. "babel-loader": "^8.0.0",
  63. "babel-preset-env": "^1.6.0",
  64. "core-js": "^3.1.4",
  65. "cross-env": "^6.0.3",
  66. "cz-conventional-changelog": "^1.2.0",
  67. "eslint": "^4.6.1",
  68. "eslint-config-airbnb": "^15.1.0",
  69. "eslint-config-okonet": "^6.1.3",
  70. "eslint-config-prettier": "^2.4.0",
  71. "eslint-plugin-flowtype": "^2.35.1",
  72. "eslint-plugin-import": "^2.7.0",
  73. "eslint-plugin-jsx-a11y": "^5.1.1",
  74. "eslint-plugin-node": "^5.1.1",
  75. "eslint-plugin-prettier": "^2.2.0",
  76. "eslint-plugin-react": "^7.3.0",
  77. "expect": "^1.20.2",
  78. "husky": "^0.14.3",
  79. "lint-staged": "^4.1.3",
  80. "mocha": "^3.5.0",
  81. "prettier": "^1.6.1",
  82. "rimraf": "^3.0.0",
  83. "webpack": "^4.0.0",
  84. "webpack-cli": "^3.3.12"
  85. },
  86. "engines": {
  87. "node": ">=4"
  88. },
  89. "config": {
  90. "commitizen": {
  91. "path": "./node_modules/cz-conventional-changelog"
  92. }
  93. },
  94. "lint-staged": {
  95. "*.js": [
  96. "eslint --fix",
  97. "git add"
  98. ]
  99. },
  100. "size-limit": [
  101. {
  102. "path": "dist/index.js",
  103. "limit": "2 KB"
  104. }
  105. ]
  106. }