package.json 2.0 KB

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