package.json 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "name": "domutils",
  3. "version": "3.0.1",
  4. "description": "Utilities for working with htmlparser2's dom",
  5. "author": "Felix Boehm <me@feedic.com>",
  6. "funding": {
  7. "url": "https://github.com/fb55/domutils?sponsor=1"
  8. },
  9. "license": "BSD-2-Clause",
  10. "sideEffects": false,
  11. "main": "lib/index.js",
  12. "types": "lib/index.d.ts",
  13. "module": "lib/esm/index.js",
  14. "exports": {
  15. "require": "./lib/index.js",
  16. "import": "./lib/esm/index.js"
  17. },
  18. "files": [
  19. "lib/**/*"
  20. ],
  21. "scripts": {
  22. "test": "npm run test:jest && npm run lint",
  23. "test:jest": "jest",
  24. "lint": "npm run lint:es && npm run lint:prettier",
  25. "lint:es": "eslint --ignore-path .gitignore .",
  26. "lint:prettier": "npm run prettier -- --check",
  27. "format": "npm run format:es && npm run format:prettier",
  28. "format:es": "npm run lint:es -- --fix",
  29. "format:prettier": "npm run prettier -- --write",
  30. "prettier": "prettier \"**/*.{ts,md,json,yml}\" --ignore-path .gitignore",
  31. "build": "npm run build:cjs && npm run build:esm",
  32. "build:cjs": "tsc --sourceRoot https://raw.githubusercontent.com/fb55/domutils/$(git rev-parse HEAD)/src/",
  33. "build:esm": "npm run build:cjs -- --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
  34. "build:docs": "typedoc --hideGenerator --exclude \"**/*+(index|.spec).ts\" --categorizeByGroup false --sort enum-value-ascending --sort alphabetical src",
  35. "prepare": "npm run build"
  36. },
  37. "repository": {
  38. "type": "git",
  39. "url": "git://github.com/fb55/domutils.git"
  40. },
  41. "keywords": [
  42. "dom",
  43. "htmlparser2"
  44. ],
  45. "dependencies": {
  46. "dom-serializer": "^2.0.0",
  47. "domelementtype": "^2.3.0",
  48. "domhandler": "^5.0.1"
  49. },
  50. "devDependencies": {
  51. "@types/jest": "^27.4.1",
  52. "@types/node": "^17.0.25",
  53. "@typescript-eslint/eslint-plugin": "^5.20.0",
  54. "@typescript-eslint/parser": "^5.20.0",
  55. "eslint": "^8.13.0",
  56. "eslint-config-prettier": "^8.5.0",
  57. "eslint-plugin-jsdoc": "^39.2.7",
  58. "htmlparser2": "~7.2.0",
  59. "jest": "^27.5.1",
  60. "prettier": "^2.6.2",
  61. "ts-jest": "^27.1.4",
  62. "typedoc": "^0.22.15",
  63. "typescript": "^4.6.3"
  64. },
  65. "jest": {
  66. "preset": "ts-jest",
  67. "testEnvironment": "node",
  68. "coverageProvider": "v8",
  69. "moduleNameMapper": {
  70. "^(.*)\\.js$": "$1"
  71. }
  72. },
  73. "prettier": {
  74. "tabWidth": 4
  75. }
  76. }