1
0

package.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "name": "rehype-prism-plus",
  3. "version": "1.3.2",
  4. "description": "rehype plugin to highlight code blocks in HTML with Prism (via refractor) with line highlighting and line numbers",
  5. "source": "index.js",
  6. "files": [
  7. "dist"
  8. ],
  9. "main": "./dist/rehype-prism-plus.es.js",
  10. "module": "./dist/rehype-prism-plus.es.js",
  11. "types": "./dist/index.d.ts",
  12. "type": "module",
  13. "exports": {
  14. ".": {
  15. "import": "./dist/rehype-prism-plus.es.js"
  16. },
  17. "./common": {
  18. "import": "./dist/common.es.js"
  19. },
  20. "./all": {
  21. "import": "./dist/all.js"
  22. },
  23. "./generator": {
  24. "import": "./dist/generator.es.js"
  25. }
  26. },
  27. "typesVersions": {
  28. "*": {
  29. ".": [
  30. "./dist/index"
  31. ],
  32. "common": [
  33. "./dist/src/common"
  34. ],
  35. "all": [
  36. "./dist/src/all"
  37. ],
  38. "generator": [
  39. "./dist/src/generator"
  40. ]
  41. }
  42. },
  43. "scripts": {
  44. "build": "tsc -b && microbundle index.js src/common.js src/all.js src/generator.js --format esm",
  45. "tsc": "tsc --watch",
  46. "lint": "eslint .",
  47. "prettier": "prettier --write '*.js'",
  48. "test": "uvu"
  49. },
  50. "repository": {
  51. "type": "git",
  52. "url": "git+https://github.com/timlrx/rehype-prism-plus.git"
  53. },
  54. "keywords": [
  55. "rehype",
  56. "rehype-plugin",
  57. "syntax-highlighting",
  58. "prism",
  59. "mdx",
  60. "jsx"
  61. ],
  62. "author": "Timothy Lin <timothy0336@hotmail.com> (https://timlrx.com)",
  63. "license": "MIT",
  64. "bugs": {
  65. "url": "https://github.com/timlrx/rehype-prism-plus/issues"
  66. },
  67. "homepage": "https://github.com/timlrx/rehype-prism-plus#readme",
  68. "dependencies": {
  69. "hast-util-to-string": "^2.0.0",
  70. "parse-numeric-range": "^1.3.0",
  71. "refractor": "^4.5.0",
  72. "rehype-parse": "^8.0.2",
  73. "unist-util-filter": "^4.0.0",
  74. "unist-util-visit": "^4.0.0"
  75. },
  76. "devDependencies": {
  77. "dedent": "^0.7.0",
  78. "eslint": "^7.32.0",
  79. "eslint-config-prettier": "^8.3.0",
  80. "eslint-plugin-node": "^11.1.0",
  81. "husky": "^4.0.0",
  82. "lint-staged": "^11.1.2",
  83. "microbundle": "^0.14.1",
  84. "prettier": "^2.3.2",
  85. "rehype": "^12.0.0",
  86. "typescript": "4.4.3",
  87. "unified": "^10.1.0",
  88. "uvu": "^0.5.1"
  89. },
  90. "prettier": {
  91. "printWidth": 100,
  92. "tabWidth": 2,
  93. "useTabs": false,
  94. "singleQuote": true,
  95. "bracketSpacing": true,
  96. "semi": false,
  97. "trailingComma": "es5"
  98. },
  99. "lint-staged": {
  100. "*.+(js|jsx|ts|tsx)": [
  101. "eslint --fix"
  102. ],
  103. "*.+(js|jsx|ts|tsx|json|css|md|mdx)": [
  104. "prettier --write"
  105. ]
  106. },
  107. "husky": {
  108. "hooks": {
  109. "pre-commit": "lint-staged"
  110. }
  111. }
  112. }