package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. "name": "highlight.js",
  3. "description": "Syntax highlighting with language autodetection.",
  4. "keywords": [
  5. "highlight",
  6. "syntax"
  7. ],
  8. "homepage": "https://highlightjs.org/",
  9. "version": "11.10.0",
  10. "author": "Josh Goebel <hello@joshgoebel.com>",
  11. "contributors": [
  12. "Josh Goebel <hello@joshgoebel.com>",
  13. "Egor Rogov <e.rogov@postgrespro.ru>",
  14. "Vladimir Jimenez <me@allejo.io>",
  15. "Ivan Sagalaev <maniac@softwaremaniacs.org>",
  16. "Jeremy Hull <sourdrums@gmail.com>",
  17. "Oleg Efimov <efimovov@gmail.com>",
  18. "Gidi Meir Morris <gidi@gidi.io>",
  19. "Jan T. Sott <git@idleberg.com>",
  20. "Li Xuanji <xuanji@gmail.com>",
  21. "Marcos Cáceres <marcos@marcosc.com>",
  22. "Sang Dang <sang.dang@polku.io>"
  23. ],
  24. "bugs": {
  25. "url": "https://github.com/highlightjs/highlight.js/issues"
  26. },
  27. "license": "BSD-3-Clause",
  28. "repository": {
  29. "type": "git",
  30. "url": "git://github.com/highlightjs/highlight.js.git"
  31. },
  32. "type": "commonjs",
  33. "main": "./lib/index.js",
  34. "types": "./types/index.d.ts",
  35. "sideEffects": [
  36. "./es/common.js",
  37. "./lib/common.js",
  38. "*.css",
  39. "*.scss"
  40. ],
  41. "scripts": {
  42. "mocha": "mocha",
  43. "lint": "eslint src/*.js src/lib/*.js demo/*.js tools/**/*.js --ignore-pattern vendor",
  44. "lint-languages": "eslint --no-eslintrc -c .eslintrc.lang.js src/languages/**/*.js",
  45. "build_and_test": "npm run build && npm run test",
  46. "build_and_test_browser": "npm run build-browser && npm run test-browser",
  47. "build": "node ./tools/build.js -t node",
  48. "build-cdn": "node ./tools/build.js -t cdn",
  49. "build-browser": "node ./tools/build.js -t browser :common",
  50. "devtool": "npx http-server",
  51. "test": "mocha test",
  52. "test-markup": "mocha test/markup",
  53. "test-detect": "mocha test/detect",
  54. "test-browser": "mocha test/browser",
  55. "test-parser": "mocha test/parser"
  56. },
  57. "engines": {
  58. "node": ">=12.0.0"
  59. },
  60. "devDependencies": {
  61. "@colors/colors": "^1.6.0",
  62. "@rollup/plugin-commonjs": "^26.0.1",
  63. "@rollup/plugin-json": "^6.0.1",
  64. "@rollup/plugin-node-resolve": "^15.2.3",
  65. "@types/mocha": "^10.0.2",
  66. "@typescript-eslint/eslint-plugin": "^7.15.0",
  67. "@typescript-eslint/parser": "^7.15.0",
  68. "clean-css": "^5.3.2",
  69. "cli-table": "^0.3.1",
  70. "commander": "^12.1.0",
  71. "css": "^3.0.0",
  72. "css-color-names": "^1.0.1",
  73. "deep-freeze-es6": "^3.0.2",
  74. "del": "^7.1.0",
  75. "dependency-resolver": "^2.0.1",
  76. "eslint": "^8.57.0",
  77. "eslint-config-standard": "^17.1.0",
  78. "eslint-plugin-import": "^2.28.1",
  79. "eslint-plugin-node": "^11.1.0",
  80. "eslint-plugin-promise": "^6.1.1",
  81. "glob": "^8.1.0",
  82. "glob-promise": "^6.0.5",
  83. "handlebars": "^4.7.8",
  84. "http-server": "^14.1.1",
  85. "jsdom": "^24.1.0",
  86. "lodash": "^4.17.20",
  87. "mocha": "^10.2.0",
  88. "refa": "^0.4.1",
  89. "rollup": "^4.0.2",
  90. "should": "^13.2.3",
  91. "terser": "^5.21.0",
  92. "tiny-worker": "^2.3.0",
  93. "typescript": "^5.2.2",
  94. "wcag-contrast": "^3.0.0"
  95. },
  96. "exports": {
  97. ".": {
  98. "types": "./types/index.d.ts",
  99. "require": "./lib/index.js",
  100. "import": "./es/index.js"
  101. },
  102. "./package.json": "./package.json",
  103. "./lib/common": {
  104. "require": "./lib/common.js",
  105. "import": "./es/common.js"
  106. },
  107. "./lib/core": {
  108. "require": "./lib/core.js",
  109. "import": "./es/core.js"
  110. },
  111. "./lib/languages/*": {
  112. "require": "./lib/languages/*.js",
  113. "import": "./es/languages/*.js"
  114. },
  115. "./scss/*": "./scss/*",
  116. "./styles/*": "./styles/*",
  117. "./types/*": "./types/*"
  118. }
  119. }