package.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. "name": "rehype-prism-plus",
  3. "version": "0.0.3",
  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. "exports": {
  13. ".": {
  14. "import": "./dist/rehype-prism-plus.es.js",
  15. "require": "./dist/rehype-prism-plus.umd.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-string": "^1.0.4",
  45. "parse-numeric-range": "^1.2.0",
  46. "refractor": "^4.0.0",
  47. "unist-util-visit": "^3.1.0"
  48. },
  49. "devDependencies": {
  50. "dedent": "^0.7.0",
  51. "eslint": "^7.29.0",
  52. "eslint-config-prettier": "^8.3.0",
  53. "eslint-plugin-node": "^11.1.0",
  54. "husky": "^4.0.0",
  55. "lint-staged": "^11.0.0",
  56. "prettier": "^2.3.2",
  57. "rehype": "^11.0.0",
  58. "typescript": "^4.3.4",
  59. "uvu": "^0.5.1",
  60. "vite": "^2.3.8"
  61. },
  62. "prettier": {
  63. "printWidth": 100,
  64. "tabWidth": 2,
  65. "useTabs": false,
  66. "singleQuote": true,
  67. "bracketSpacing": true,
  68. "semi": false,
  69. "trailingComma": "es5"
  70. },
  71. "lint-staged": {
  72. "*.+(js|jsx|ts|tsx)": [
  73. "eslint --fix"
  74. ],
  75. "*.+(js|jsx|ts|tsx|json|css|md|mdx)": [
  76. "prettier --write"
  77. ]
  78. },
  79. "husky": {
  80. "hooks": {
  81. "pre-commit": "lint-staged"
  82. }
  83. }
  84. }