package.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {
  2. "name": "@asamuzakjp/dom-selector",
  3. "description": "A CSS selector engine.",
  4. "author": "asamuzaK",
  5. "license": "MIT",
  6. "homepage": "https://github.com/asamuzaK/domSelector#readme",
  7. "bugs": {
  8. "url": "https://github.com/asamuzaK/domSelector/issues"
  9. },
  10. "repository": {
  11. "type": "git",
  12. "url": "git+https://github.com/asamuzaK/domSelector.git"
  13. },
  14. "files": [
  15. "dist",
  16. "src",
  17. "types"
  18. ],
  19. "type": "module",
  20. "exports": {
  21. "import": {
  22. "types": "./types/index.d.ts",
  23. "default": "./src/index.js"
  24. },
  25. "require": {
  26. "types": "./dist/cjs/index.d.cts",
  27. "default": "./dist/cjs/index.cjs"
  28. },
  29. "default": {
  30. "types": "./dist/cjs/types/index.d.cts",
  31. "default": "./dist/cjs/index.cjs"
  32. }
  33. },
  34. "types": "types/index.d.ts",
  35. "dependencies": {
  36. "@asamuzakjp/nwsapi": "^2.3.9",
  37. "bidi-js": "^1.0.3",
  38. "css-tree": "^3.1.0",
  39. "is-potential-custom-element-name": "^1.0.1",
  40. "lru-cache": "^11.2.6"
  41. },
  42. "devDependencies": {
  43. "@types/css-tree": "^2.3.11",
  44. "benchmark": "^2.1.4",
  45. "c8": "^10.1.3",
  46. "chai": "^6.2.2",
  47. "commander": "^14.0.3",
  48. "esbuild": "^0.27.3",
  49. "eslint": "^9.39.2",
  50. "eslint-config-prettier": "^10.1.8",
  51. "eslint-plugin-jsdoc": "^62.5.4",
  52. "eslint-plugin-prettier": "^5.5.5",
  53. "eslint-plugin-regexp": "^3.0.0",
  54. "eslint-plugin-unicorn": "^63.0.0",
  55. "globals": "^17.3.0",
  56. "jsdom": "^28.0.0",
  57. "mocha": "^11.7.5",
  58. "neostandard": "^0.12.2",
  59. "prettier": "^3.8.1",
  60. "sinon": "^21.0.1",
  61. "tsup": "^8.5.1",
  62. "typescript": "^5.9.3",
  63. "wpt-runner": "^6.1.0"
  64. },
  65. "overrides": {
  66. "jsdom": "$jsdom"
  67. },
  68. "scripts": {
  69. "bench": "node benchmark/bench.js",
  70. "bench:sizzle": "node benchmark/bench-sizzle.js",
  71. "build": "npm run tsc && npm run lint && npm test && npm run bundle && npm run test:cjs",
  72. "bundle": "tsup src/index.js --format=cjs --platform=node --outDir=dist/cjs/ --sourcemap --dts",
  73. "lint": "eslint --fix .",
  74. "test": "c8 --reporter=text mocha --parallel --exit test/**/*.test.js",
  75. "test:cjs": "mocha --exit test/index.test.cjs",
  76. "test:wpt": "node test/wpt/wpt-runner.js",
  77. "tsc": "node scripts/index clean --dir=types -i && npx tsc",
  78. "update:wpt": "git submodule update --init --recursive --remote"
  79. },
  80. "version": "6.8.1"
  81. }