package.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. "name": "dom-serializer",
  3. "version": "2.0.0",
  4. "description": "render domhandler DOM nodes to a string",
  5. "author": "Felix Boehm <me@feedic.com>",
  6. "sideEffects": false,
  7. "keywords": [
  8. "html",
  9. "xml",
  10. "render"
  11. ],
  12. "repository": {
  13. "type": "git",
  14. "url": "git://github.com/cheeriojs/dom-serializer.git"
  15. },
  16. "main": "lib/index.js",
  17. "types": "lib/index.d.ts",
  18. "module": "lib/esm/index.js",
  19. "exports": {
  20. "require": "./lib/index.js",
  21. "import": "./lib/esm/index.js"
  22. },
  23. "files": [
  24. "lib/**/*"
  25. ],
  26. "dependencies": {
  27. "domelementtype": "^2.3.0",
  28. "domhandler": "^5.0.2",
  29. "entities": "^4.2.0"
  30. },
  31. "devDependencies": {
  32. "@types/jest": "^27.4.1",
  33. "@types/node": "^17.0.23",
  34. "@typescript-eslint/eslint-plugin": "^5.18.0",
  35. "@typescript-eslint/parser": "^5.18.0",
  36. "cheerio": "^1.0.0-rc.9",
  37. "eslint": "^8.12.0",
  38. "eslint-config-prettier": "^8.5.0",
  39. "htmlparser2": "^7.2.0",
  40. "jest": "^27.5.1",
  41. "prettier": "^2.6.2",
  42. "ts-jest": "^27.1.4",
  43. "typescript": "^4.6.3"
  44. },
  45. "scripts": {
  46. "test": "npm run test:jest && npm run lint",
  47. "test:jest": "jest",
  48. "lint": "npm run lint:es && npm run lint:prettier",
  49. "lint:es": "eslint --ignore-path .gitignore .",
  50. "lint:prettier": "npm run prettier -- --check",
  51. "format": "npm run format:es && npm run format:prettier",
  52. "format:es": "npm run lint:es -- --fix",
  53. "format:prettier": "npm run prettier -- --write",
  54. "prettier": "prettier \"**/*.{ts,md,json,yml}\" --ignore-path .gitignore",
  55. "build": "npm run build:cjs && npm run build:esm",
  56. "build:cjs": "tsc",
  57. "build:esm": "tsc --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
  58. "prepare": "npm run build"
  59. },
  60. "jest": {
  61. "preset": "ts-jest",
  62. "testEnvironment": "node",
  63. "moduleNameMapper": {
  64. "^(.*)\\.js$": "$1"
  65. }
  66. },
  67. "funding": "https://github.com/cheeriojs/dom-serializer?sponsor=1",
  68. "license": "MIT"
  69. }