1
0

package.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. "exports": {
  13. ".": {
  14. "import": "./dist/rehype-prism-plus.es.js",
  15. "require": "./dist/rehype-prism-plus.umd.js"
  16. }
  17. },
  18. "scripts": {
  19. "build": "vite build",
  20. "lint": "eslint .",
  21. "prettier": "prettier --write '*.js'",
  22. "test": "uvu"
  23. },
  24. "repository": {
  25. "type": "git",
  26. "url": "git+https://github.com/timlrx/rehype-prism-plus.git"
  27. },
  28. "keywords": [
  29. "rehype",
  30. "rehype-plugin",
  31. "syntax-highlighting",
  32. "prism",
  33. "mdx",
  34. "jsx"
  35. ],
  36. "author": "Timothy Lin <timothy0336@hotmail.com> (https://timlrx.com)",
  37. "license": "MIT",
  38. "bugs": {
  39. "url": "https://github.com/timlrx/rehype-prism-plus/issues"
  40. },
  41. "homepage": "https://github.com/timlrx/rehype-prism-plus#readme",
  42. "dependencies": {
  43. "hast-util-to-string": "^1.0.4",
  44. "parse-numeric-range": "^1.2.0",
  45. "refractor": "^4.0.0",
  46. "unist-util-visit": "^3.1.0"
  47. },
  48. "devDependencies": {
  49. "dedent": "^0.7.0",
  50. "eslint": "^7.29.0",
  51. "eslint-config-prettier": "^8.3.0",
  52. "eslint-plugin-node": "^11.1.0",
  53. "husky": "^4.0.0",
  54. "lint-staged": "^11.0.0",
  55. "prettier": "^2.3.2",
  56. "rehype": "^11.0.0",
  57. "uvu": "^0.5.1",
  58. "vite": "^2.3.8"
  59. },
  60. "prettier": {
  61. "printWidth": 100,
  62. "tabWidth": 2,
  63. "useTabs": false,
  64. "singleQuote": true,
  65. "bracketSpacing": true,
  66. "semi": false,
  67. "trailingComma": "es5"
  68. },
  69. "lint-staged": {
  70. "*.+(js|jsx|ts|tsx)": [
  71. "eslint --fix"
  72. ],
  73. "*.+(js|jsx|ts|tsx|json|css|md|mdx)": [
  74. "prettier --write"
  75. ]
  76. },
  77. "husky": {
  78. "hooks": {
  79. "pre-commit": "lint-staged"
  80. }
  81. }
  82. }