package.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "name": "domelementtype",
  3. "version": "2.3.0",
  4. "description": "all the types of nodes in htmlparser2's dom",
  5. "author": "Felix Boehm <me@feedic.com>",
  6. "license": "BSD-2-Clause",
  7. "funding": [
  8. {
  9. "type": "github",
  10. "url": "https://github.com/sponsors/fb55"
  11. }
  12. ],
  13. "sideEffects": false,
  14. "main": "lib/index.js",
  15. "types": "lib/index.d.ts",
  16. "module": "lib/esm/index.js",
  17. "exports": {
  18. "require": "./lib/index.js",
  19. "import": "./lib/esm/index.js"
  20. },
  21. "files": [
  22. "lib/**/*"
  23. ],
  24. "repository": {
  25. "type": "git",
  26. "url": "git://github.com/fb55/domelementtype.git"
  27. },
  28. "keywords": [
  29. "dom",
  30. "element",
  31. "types",
  32. "htmlparser2"
  33. ],
  34. "scripts": {
  35. "test": "npm run lint && prettier --check **/*.{ts,json,md}",
  36. "lint": "eslint src",
  37. "format": "prettier --write **/*.{ts,json,md}",
  38. "build": "npm run build:cjs && npm run build:esm",
  39. "build:cjs": "tsc",
  40. "build:esm": "tsc --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
  41. "prepare": "npm run build"
  42. },
  43. "prettier": {
  44. "tabWidth": 4
  45. },
  46. "devDependencies": {
  47. "@typescript-eslint/eslint-plugin": "^5.18.0",
  48. "@typescript-eslint/parser": "^5.18.0",
  49. "eslint": "^8.12.0",
  50. "eslint-config-prettier": "^8.5.0",
  51. "prettier": "^2.6.2",
  52. "typescript": "^4.6.3"
  53. }
  54. }