package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "name": "mdast-util-from-markdown",
  3. "version": "2.0.0",
  4. "description": "mdast utility to parse markdown",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "mdast",
  9. "mdast-util",
  10. "util",
  11. "utility",
  12. "markdown",
  13. "markup",
  14. "parse",
  15. "syntax",
  16. "tree",
  17. "ast"
  18. ],
  19. "repository": "syntax-tree/mdast-util-from-markdown",
  20. "bugs": "https://github.com/syntax-tree/mdast-util-from-markdown/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": {
  32. "development": "./dev/index.js",
  33. "default": "./index.js"
  34. },
  35. "files": [
  36. "dev/",
  37. "lib/",
  38. "index.d.ts",
  39. "index.js"
  40. ],
  41. "dependencies": {
  42. "@types/mdast": "^4.0.0",
  43. "@types/unist": "^3.0.0",
  44. "decode-named-character-reference": "^1.0.0",
  45. "devlop": "^1.0.0",
  46. "mdast-util-to-string": "^4.0.0",
  47. "micromark": "^4.0.0",
  48. "micromark-util-decode-numeric-character-reference": "^2.0.0",
  49. "micromark-util-decode-string": "^2.0.0",
  50. "micromark-util-normalize-identifier": "^2.0.0",
  51. "micromark-util-symbol": "^2.0.0",
  52. "micromark-util-types": "^2.0.0",
  53. "unist-util-stringify-position": "^4.0.0"
  54. },
  55. "devDependencies": {
  56. "@types/node": "^20.0.0",
  57. "c8": "^8.0.0",
  58. "commonmark.json": "^0.30.0",
  59. "esbuild": "^0.18.0",
  60. "gzip-size-cli": "^5.0.0",
  61. "hast-util-from-html": "^1.0.0",
  62. "hast-util-to-html": "^8.0.0",
  63. "mdast-util-to-hast": "^12.0.0",
  64. "micromark-build": "^2.0.0",
  65. "prettier": "^2.0.0",
  66. "remark-cli": "^11.0.0",
  67. "remark-preset-wooorm": "^9.0.0",
  68. "terser": "^5.0.0",
  69. "type-coverage": "^2.0.0",
  70. "typescript": "^5.0.0",
  71. "xo": "^0.54.0"
  72. },
  73. "scripts": {
  74. "prepack": "npm run build && npm run format",
  75. "build": "tsc --build --clean && tsc --build && type-coverage && micromark-build && esbuild . --bundle --minify | terser | gzip-size --raw",
  76. "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
  77. "test-api-dev": "node --conditions development test/index.js",
  78. "test-api-prod": "node --conditions production test/index.js",
  79. "test-api": "npm run test-api-dev && npm run test-api-prod",
  80. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  81. "test": "npm run build && npm run format && npm run test-coverage"
  82. },
  83. "prettier": {
  84. "bracketSpacing": false,
  85. "semi": false,
  86. "singleQuote": true,
  87. "tabWidth": 2,
  88. "trailingComma": "none",
  89. "useTabs": false
  90. },
  91. "remarkConfig": {
  92. "plugins": [
  93. "remark-preset-wooorm"
  94. ]
  95. },
  96. "typeCoverage": {
  97. "atLeast": 100,
  98. "detail": true,
  99. "ignoreCatch": true,
  100. "strict": true
  101. },
  102. "xo": {
  103. "overrides": [
  104. {
  105. "files": "**/*.ts",
  106. "rules": {
  107. "@typescript-eslint/consistent-type-definitions": "off"
  108. }
  109. },
  110. {
  111. "files": "test/**/*.js",
  112. "rules": {
  113. "no-await-in-loop": "off"
  114. }
  115. }
  116. ],
  117. "prettier": true,
  118. "rules": {
  119. "complexity": "off",
  120. "max-depth": "off"
  121. }
  122. }
  123. }