package.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "name": "trough",
  3. "version": "2.2.0",
  4. "description": "`trough` is middleware",
  5. "license": "MIT",
  6. "keywords": [
  7. "middleware",
  8. "ware"
  9. ],
  10. "repository": "wooorm/trough",
  11. "bugs": "https://github.com/wooorm/trough/issues",
  12. "funding": {
  13. "type": "github",
  14. "url": "https://github.com/sponsors/wooorm"
  15. },
  16. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  17. "contributors": [
  18. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  19. ],
  20. "sideEffects": false,
  21. "type": "module",
  22. "exports": "./index.js",
  23. "files": [
  24. "lib/",
  25. "index.d.ts.map",
  26. "index.d.ts",
  27. "index.js"
  28. ],
  29. "devDependencies": {
  30. "@types/node": "^20.0.0",
  31. "c8": "^9.0.0",
  32. "prettier": "^3.0.0",
  33. "remark-cli": "^11.0.0",
  34. "remark-preset-wooorm": "^9.0.0",
  35. "type-coverage": "^2.0.0",
  36. "typescript": "^5.0.0",
  37. "xo": "^0.56.0"
  38. },
  39. "scripts": {
  40. "build": "tsc --build --clean && tsc --build && type-coverage",
  41. "format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
  42. "prepack": "npm run build && npm run format",
  43. "test": "npm run build && npm run format && npm run test-coverage",
  44. "test-api": "node --conditions development test.js",
  45. "test-coverage": "c8 --100 --reporter lcov npm run test-api"
  46. },
  47. "prettier": {
  48. "bracketSpacing": false,
  49. "singleQuote": true,
  50. "semi": false,
  51. "tabWidth": 2,
  52. "trailingComma": "none",
  53. "useTabs": false
  54. },
  55. "remarkConfig": {
  56. "plugins": [
  57. "remark-preset-wooorm"
  58. ]
  59. },
  60. "typeCoverage": {
  61. "atLeast": 100,
  62. "detail": true,
  63. "strict": true,
  64. "ignoreCatch": true,
  65. "#": "some nessecary `any`s",
  66. "ignoreFiles": [
  67. "lib/index.js",
  68. "lib/index.d.ts"
  69. ]
  70. },
  71. "xo": {
  72. "prettier": true,
  73. "rules": {
  74. "capitalized-comments": "off"
  75. }
  76. }
  77. }