package.json 2.1 KB

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