package.json 1.8 KB

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