package.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "name": "unfetch",
  3. "version": "4.2.0",
  4. "description": "Bare minimum fetch polyfill in 500 bytes",
  5. "unpkg": "polyfill/index.js",
  6. "main": "dist/unfetch.js",
  7. "module": "dist/unfetch.module.js",
  8. "jsnext:main": "dist/unfetch.module.js",
  9. "umd:main": "dist/unfetch.umd.js",
  10. "scripts": {
  11. "test": "eslint src test && jest",
  12. "build": "microbundle src/index.mjs && microbundle -f cjs polyfill/polyfill.mjs -o polyfill/index.js --no-sourcemap && cp dist/unfetch.module.js dist/unfetch.es.js",
  13. "prepare": "npm run -s build",
  14. "release": "cross-var npm run build -s && cross-var git commit -am $npm_package_version && cross-var git tag $npm_package_version && git push && git push --tags && npm publish"
  15. },
  16. "repository": "developit/unfetch",
  17. "keywords": [
  18. "fetch",
  19. "polyfill",
  20. "xhr",
  21. "ajax"
  22. ],
  23. "homepage": "https://github.com/developit/unfetch",
  24. "authors": [
  25. "Jason Miller <jason@developit.ca>"
  26. ],
  27. "license": "MIT",
  28. "types": "src/index.d.ts",
  29. "files": [
  30. "src",
  31. "dist",
  32. "polyfill"
  33. ],
  34. "eslintConfig": {
  35. "extends": "developit"
  36. },
  37. "jest": {
  38. "testURL": "http://localhost/",
  39. "testMatch": [
  40. "<rootDir>/test/**/*.?(m)js?(x)"
  41. ],
  42. "moduleFileExtensions": [
  43. "mjs",
  44. "js"
  45. ],
  46. "transform": {
  47. "^.+\\.m?jsx?$": "babel-jest"
  48. }
  49. },
  50. "babel": {
  51. "env": {
  52. "test": {
  53. "presets": [
  54. "env"
  55. ]
  56. }
  57. }
  58. },
  59. "devDependencies": {
  60. "babel-preset-env": "^1.7.0",
  61. "cross-var": "^1.1.0",
  62. "eslint": "^3.13.1",
  63. "eslint-config-developit": "^1.1.1",
  64. "jest": "^23.6.0",
  65. "microbundle": "^0.10.1"
  66. }
  67. }