package.json 2.2 KB

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