package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "name": "rehype-prism-plus",
  3. "version": "2.0.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/index.es.js",
  10. "module": "./dist/index.es.js",
  11. "types": "./dist/index.d.ts",
  12. "type": "module",
  13. "exports": {
  14. ".": {
  15. "types": "./dist/index.d.ts",
  16. "default": "./dist/index.es.js"
  17. },
  18. "./common": {
  19. "types": "./dist/common.d.ts",
  20. "default": "./dist/common.es.js"
  21. },
  22. "./all": {
  23. "types": "./dist/all.d.ts",
  24. "default": "./dist/all.es.js"
  25. },
  26. "./generator": {
  27. "types": "./dist/generator.d.ts",
  28. "default": "./dist/generator.es.js"
  29. }
  30. },
  31. "typesVersions": {
  32. "*": {
  33. ".": [
  34. "./dist/index"
  35. ],
  36. "common": [
  37. "./dist/common"
  38. ],
  39. "all": [
  40. "./dist/all"
  41. ],
  42. "generator": [
  43. "./dist/generator"
  44. ]
  45. }
  46. },
  47. "scripts": {
  48. "build": "tsc -b && microbundle src/index.js src/common.js src/all.js src/generator.js --format esm",
  49. "tsc": "tsc --watch",
  50. "lint": "eslint .",
  51. "prettier": "prettier --write '*.js'",
  52. "test": "uvu"
  53. },
  54. "repository": {
  55. "type": "git",
  56. "url": "git+https://github.com/timlrx/rehype-prism-plus.git"
  57. },
  58. "keywords": [
  59. "rehype",
  60. "rehype-plugin",
  61. "syntax-highlighting",
  62. "prism",
  63. "mdx",
  64. "jsx"
  65. ],
  66. "author": "Timothy Lin <timothy0336@hotmail.com> (https://timlrx.com)",
  67. "license": "MIT",
  68. "bugs": {
  69. "url": "https://github.com/timlrx/rehype-prism-plus/issues"
  70. },
  71. "homepage": "https://github.com/timlrx/rehype-prism-plus#readme",
  72. "dependencies": {
  73. "hast-util-to-string": "^3.0.0",
  74. "parse-numeric-range": "^1.3.0",
  75. "refractor": "^4.8.0",
  76. "rehype-parse": "^9.0.0",
  77. "unist-util-filter": "^5.0.0",
  78. "unist-util-visit": "^5.0.0"
  79. },
  80. "devDependencies": {
  81. "dedent": "^0.7.0",
  82. "eslint": "^8.43.0",
  83. "eslint-config-prettier": "^8.3.0",
  84. "eslint-plugin-node": "^11.1.0",
  85. "husky": "^8.0.0",
  86. "lint-staged": "^11.1.2",
  87. "microbundle": "^0.15.1",
  88. "prettier": "^2.8.8",
  89. "rehype": "^13.0.1",
  90. "remark": "^15.0.1",
  91. "remark-rehype": "^11.0.0",
  92. "typescript": "5.1.3",
  93. "unified": "^11.0.4",
  94. "uvu": "^0.5.1"
  95. },
  96. "prettier": {
  97. "printWidth": 100,
  98. "tabWidth": 2,
  99. "useTabs": false,
  100. "singleQuote": true,
  101. "bracketSpacing": true,
  102. "semi": false,
  103. "trailingComma": "es5"
  104. },
  105. "lint-staged": {
  106. "*.+(js|jsx|ts|tsx)": [
  107. "eslint --fix"
  108. ],
  109. "*.+(js|jsx|ts|tsx|json|css|md|mdx)": [
  110. "prettier --write"
  111. ]
  112. }
  113. }