package.json 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. "name": "dom-accessibility-api",
  3. "description": "Implements https://w3c.github.io/accname/",
  4. "version": "0.5.16",
  5. "main": "dist/index.js",
  6. "module": "dist/index.mjs",
  7. "type": "commonjs",
  8. "exports": {
  9. "import": "./dist/index.mjs",
  10. "require": "./dist/index.js"
  11. },
  12. "license": "MIT",
  13. "repository": {
  14. "type": "git",
  15. "url": "https://github.com/eps1lon/dom-accessibility-api.git"
  16. },
  17. "files": [
  18. ".browserslistrc",
  19. "dist/"
  20. ],
  21. "scripts": {
  22. "build": "yarn build:clean && yarn build:source && yarn build:source:cjs && yarn build:types",
  23. "build:clean": "rimraf dist",
  24. "build:source": "cross-env BABEL_ENV=esm babel sources --extensions \".ts\" --ignore \"**/__tests__/**/*\" --out-dir dist/ --out-file-extension=.mjs --source-maps",
  25. "build:source:cjs": "cross-env BABEL_ENV=cjs babel sources --extensions \".ts\" --ignore \"**/__tests__/**/*\" --out-dir dist/ --out-file-extension=.js --source-maps",
  26. "build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
  27. "format": "prettier \"**/*.{json,js,md,ts,yml}\" --write --ignore-path .prettierignore",
  28. "lint": "eslint --report-unused-disable-directives \"{scripts,sources}/**/*.{js,ts}\"",
  29. "release": "yarn build && yarn changeset publish",
  30. "test": "jest --config scripts/jest/jest.config.js",
  31. "test:ci": "jest --ci --config scripts/jest/jest.ci.config.js --runInBand",
  32. "test:coverage": "jest --config scripts/jest/jest.coverage.config.js",
  33. "test:types": "tsc -p tsconfig.json --noEmit",
  34. "test:wpt:jsdom": "mocha tests/wpt-jsdom/run-wpts.js",
  35. "test:wpt:browser": "concurrently --success first --kill-others \"yarn test:wpt:browser:run\" \"yarn test:wpt:browser:server\"",
  36. "test:wpt:browser:run": "cypress run --project tests",
  37. "test:wpt:browser:server": "serve tests/wpt",
  38. "test:wpt:browser:open": "cypress open --project tests",
  39. "wpt:init": "git submodule update --init --recursive",
  40. "wpt:reset": "rimraf ./tests/wpt && yarn wpt:init",
  41. "wpt:update": "git submodule update --recursive --remote && cd tests/wpt && python wpt.py manifest --path ../wpt-jsdom/wpt-manifest.json"
  42. },
  43. "devDependencies": {
  44. "@babel/cli": "^7.14.3",
  45. "@babel/core": "^7.14.3",
  46. "@babel/plugin-proposal-class-properties": "^7.13.0",
  47. "@babel/preset-env": "^7.14.4",
  48. "@babel/preset-typescript": "^7.13.0",
  49. "@changesets/changelog-github": "^0.4.0",
  50. "@changesets/cli": "^2.16.0",
  51. "@testing-library/dom": "^8.0.0",
  52. "@types/jest": "^29.0.0",
  53. "@typescript-eslint/eslint-plugin": "^5.0.0",
  54. "@typescript-eslint/parser": "^5.0.0",
  55. "concurrently": "^7.0.0",
  56. "cross-env": "^7.0.3",
  57. "cypress": "^12.0.0",
  58. "eslint": "^7.27.0",
  59. "eslint-plugin-jest": "^27.0.0",
  60. "jest": "^29.0.0",
  61. "jest-diff": "^29.0.0",
  62. "jest-environment-jsdom": "^29.0.0",
  63. "jest-junit": "^15.0.0",
  64. "js-yaml": "^4.1.0",
  65. "jsdom": "^20.0.0",
  66. "minimatch": "^6.0.0",
  67. "mocha": "^10.0.0",
  68. "mocha-sugar-free": "^1.4.0",
  69. "prettier": "^2.3.0",
  70. "q": "^1.5.1",
  71. "request": "^2.88",
  72. "request-promise-native": "^1.0.9",
  73. "rimraf": "^4.0.0",
  74. "serve": "^14.0.0",
  75. "typescript": "^4.3.2"
  76. },
  77. "resolutions": {
  78. "**/kind-of": "^6.0.3",
  79. "**/minimist": "^1.2.2"
  80. },
  81. "prettier": {
  82. "useTabs": true
  83. },
  84. "keywords": [
  85. "accessibility",
  86. "ARIA",
  87. "accname"
  88. ],
  89. "publishConfig": {
  90. "access": "public"
  91. }
  92. }