package.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "name": "mdast-util-definitions",
  3. "version": "6.0.0",
  4. "description": "mdast utility to find definition nodes in a tree",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "mdast",
  9. "mdast-util",
  10. "util",
  11. "utility",
  12. "markdown",
  13. "tree",
  14. "node",
  15. "definition",
  16. "find",
  17. "cache"
  18. ],
  19. "repository": "syntax-tree/mdast-util-definitions",
  20. "bugs": "https://github.com/syntax-tree/mdast-util-definitions/issues",
  21. "funding": {
  22. "type": "opencollective",
  23. "url": "https://opencollective.com/unified"
  24. },
  25. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  26. "contributors": [
  27. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  28. ],
  29. "sideEffects": false,
  30. "type": "module",
  31. "exports": "./index.js",
  32. "files": [
  33. "lib/",
  34. "index.d.ts",
  35. "index.js"
  36. ],
  37. "dependencies": {
  38. "@types/mdast": "^4.0.0",
  39. "@types/unist": "^3.0.0",
  40. "unist-util-visit": "^5.0.0"
  41. },
  42. "devDependencies": {
  43. "@types/node": "^20.0.0",
  44. "c8": "^8.0.0",
  45. "mdast-util-from-markdown": "^1.0.0",
  46. "prettier": "^2.0.0",
  47. "remark-cli": "^11.0.0",
  48. "remark-preset-wooorm": "^9.0.0",
  49. "type-coverage": "^2.0.0",
  50. "typescript": "^5.0.0",
  51. "xo": "^0.54.0"
  52. },
  53. "scripts": {
  54. "prepack": "npm run build && npm run format",
  55. "build": "tsc --build --clean && tsc --build && type-coverage",
  56. "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
  57. "test-api": "node --conditions development test.js",
  58. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  59. "test": "npm run build && npm run format && npm run test-coverage"
  60. },
  61. "prettier": {
  62. "bracketSpacing": false,
  63. "semi": false,
  64. "singleQuote": true,
  65. "tabWidth": 2,
  66. "trailingComma": "none",
  67. "useTabs": false
  68. },
  69. "remarkConfig": {
  70. "plugins": [
  71. "remark-preset-wooorm"
  72. ]
  73. },
  74. "typeCoverage": {
  75. "atLeast": 100,
  76. "detail": true,
  77. "ignoreCatch": true,
  78. "strict": true
  79. },
  80. "xo": {
  81. "prettier": true
  82. }
  83. }