package.json 2.5 KB

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