package.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "name": "bail",
  3. "version": "1.0.5",
  4. "description": "Throw a given error",
  5. "license": "MIT",
  6. "keywords": [
  7. "fail",
  8. "bail",
  9. "throw",
  10. "callback",
  11. "error"
  12. ],
  13. "repository": "wooorm/bail",
  14. "bugs": "https://github.com/wooorm/bail/issues",
  15. "funding": {
  16. "type": "github",
  17. "url": "https://github.com/sponsors/wooorm"
  18. },
  19. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  20. "contributors": [
  21. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  22. ],
  23. "files": [
  24. "index.js"
  25. ],
  26. "dependencies": {},
  27. "devDependencies": {
  28. "browserify": "^16.0.0",
  29. "nyc": "^15.0.0",
  30. "prettier": "^1.0.0",
  31. "remark-cli": "^7.0.0",
  32. "remark-preset-wooorm": "^6.0.0",
  33. "tape": "^4.0.0",
  34. "tinyify": "^2.0.0",
  35. "xo": "^0.25.0"
  36. },
  37. "scripts": {
  38. "format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
  39. "build-bundle": "browserify index.js -s bail -o bail.js",
  40. "build-mangle": "browserify index.js -s bail -p tinyify -o bail.min.js",
  41. "build": "npm run build-bundle && npm run build-mangle",
  42. "test-api": "node test",
  43. "test-coverage": "nyc --reporter lcov tape test.js",
  44. "test": "npm run format && npm run build && npm run test-coverage"
  45. },
  46. "prettier": {
  47. "tabWidth": 2,
  48. "useTabs": false,
  49. "singleQuote": true,
  50. "bracketSpacing": false,
  51. "semi": false,
  52. "trailingComma": "none"
  53. },
  54. "xo": {
  55. "prettier": true,
  56. "esnext": false,
  57. "ignores": [
  58. "bail.js"
  59. ]
  60. },
  61. "remarkConfig": {
  62. "plugins": [
  63. "preset-wooorm"
  64. ]
  65. },
  66. "nyc": {
  67. "check-coverage": true,
  68. "lines": 100,
  69. "functions": 100,
  70. "branches": 100
  71. }
  72. }