package.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "name": "hast-util-parse-selector",
  3. "version": "4.0.0",
  4. "description": "hast utility to create an element from a simple CSS selector",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "hast",
  9. "hast-util",
  10. "util",
  11. "utility",
  12. "html",
  13. "css",
  14. "selector",
  15. "parse"
  16. ],
  17. "repository": "syntax-tree/hast-util-parse-selector",
  18. "bugs": "https://github.com/syntax-tree/hast-util-parse-selector/issues",
  19. "funding": {
  20. "type": "opencollective",
  21. "url": "https://opencollective.com/unified"
  22. },
  23. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  24. "contributors": [
  25. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  26. ],
  27. "sideEffects": false,
  28. "type": "module",
  29. "exports": "./index.js",
  30. "files": [
  31. "lib/",
  32. "index.d.ts",
  33. "index.js"
  34. ],
  35. "dependencies": {
  36. "@types/hast": "^3.0.0"
  37. },
  38. "devDependencies": {
  39. "@types/node": "^20.0.0",
  40. "c8": "^8.0.0",
  41. "prettier": "^3.0.0",
  42. "remark-cli": "^11.0.0",
  43. "remark-preset-wooorm": "^9.0.0",
  44. "tsd": "^0.28.0",
  45. "type-coverage": "^2.0.0",
  46. "typescript": "^5.0.0",
  47. "xo": "^0.55.0"
  48. },
  49. "scripts": {
  50. "prepack": "npm run build && npm run format",
  51. "build": "tsc --build --clean && tsc --build && type-coverage && tsd",
  52. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  53. "test-api": "node --conditions development test.js",
  54. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  55. "test": "npm run build && npm run format && npm run test-coverage"
  56. },
  57. "prettier": {
  58. "bracketSpacing": false,
  59. "semi": false,
  60. "singleQuote": true,
  61. "tabWidth": 2,
  62. "trailingComma": "none",
  63. "useTabs": false
  64. },
  65. "remarkConfig": {
  66. "plugins": [
  67. "remark-preset-wooorm"
  68. ]
  69. },
  70. "typeCoverage": {
  71. "atLeast": 100,
  72. "detail": true,
  73. "ignoreCatch": true,
  74. "strict": true
  75. },
  76. "xo": {
  77. "prettier": true
  78. }
  79. }