package.json 2.3 KB

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