package.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {
  2. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  3. "bugs": "https://github.com/syntax-tree/hastscript/issues",
  4. "contributors": [
  5. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  6. ],
  7. "dependencies": {
  8. "@types/hast": "^3.0.0",
  9. "comma-separated-tokens": "^2.0.0",
  10. "hast-util-parse-selector": "^4.0.0",
  11. "property-information": "^7.0.0",
  12. "space-separated-tokens": "^2.0.0"
  13. },
  14. "description": "hast utility to create trees",
  15. "devDependencies#": "note: some bug with `typescript` 5.5 being broken",
  16. "devDependencies": {
  17. "@types/node": "^22.0.0",
  18. "acorn-jsx": "^5.0.0",
  19. "c8": "^10.0.0",
  20. "esast-util-from-js": "^2.0.0",
  21. "estree-util-build-jsx": "^3.0.0",
  22. "estree-util-to-js": "^2.0.0",
  23. "prettier": "^3.0.0",
  24. "remark-cli": "^12.0.0",
  25. "remark-preset-wooorm": "^11.0.0",
  26. "svg-tag-names": "^3.0.0",
  27. "tsd": "^0.31.0",
  28. "type-coverage": "^2.0.0",
  29. "typescript": "^5.0.0",
  30. "xo": "^0.60.0"
  31. },
  32. "exports": {
  33. "./jsx-dev-runtime": "./lib/automatic-runtime-html.js",
  34. "./jsx-runtime": "./lib/automatic-runtime-html.js",
  35. "./svg/jsx-dev-runtime": "./lib/automatic-runtime-svg.js",
  36. "./svg/jsx-runtime": "./lib/automatic-runtime-svg.js",
  37. ".": "./index.js"
  38. },
  39. "files": [
  40. "index.d.ts.map",
  41. "index.d.ts",
  42. "index.js",
  43. "lib/"
  44. ],
  45. "funding": {
  46. "type": "opencollective",
  47. "url": "https://opencollective.com/unified"
  48. },
  49. "keywords": [
  50. "dom",
  51. "dsl",
  52. "hast-util",
  53. "hast",
  54. "html",
  55. "hyperscript",
  56. "rehype",
  57. "unist",
  58. "utility",
  59. "util",
  60. "vdom",
  61. "virtual"
  62. ],
  63. "license": "MIT",
  64. "name": "hastscript",
  65. "prettier": {
  66. "bracketSpacing": false,
  67. "semi": false,
  68. "singleQuote": true,
  69. "tabWidth": 2,
  70. "trailingComma": "none",
  71. "useTabs": false
  72. },
  73. "remarkConfig": {
  74. "plugins": [
  75. "remark-preset-wooorm"
  76. ]
  77. },
  78. "repository": "syntax-tree/hastscript",
  79. "scripts": {
  80. "build": "tsc --build --clean && tsc --build && tsd && type-coverage",
  81. "format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
  82. "generate": "node --conditions development script/generate-jsx.js && node --conditions development script/build.js",
  83. "test-api": "node --conditions development test/index.js",
  84. "test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
  85. "test": "npm run generate && npm run build && npm run format && npm run test-coverage"
  86. },
  87. "sideEffects": false,
  88. "typeCoverage": {
  89. "atLeast": 100,
  90. "ignoreFiles#": "needed `any`s :'(",
  91. "ignoreFiles": [
  92. "test/jsx-build-jsx-automatic-development.js"
  93. ],
  94. "strict": true
  95. },
  96. "type": "module",
  97. "version": "9.0.1",
  98. "xo": {
  99. "overrides": [
  100. {
  101. "files": [
  102. "**/*.ts"
  103. ],
  104. "rules": {
  105. "@typescript-eslint/array-type": [
  106. "error",
  107. {
  108. "default": "generic"
  109. }
  110. ],
  111. "@typescript-eslint/ban-types": [
  112. "error",
  113. {
  114. "extendDefaults": true
  115. }
  116. ],
  117. "@typescript-eslint/consistent-type-definitions": [
  118. "error",
  119. "interface"
  120. ]
  121. }
  122. }
  123. ],
  124. "prettier": true
  125. }
  126. }