package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "name": "focus-trap",
  3. "version": "6.9.4",
  4. "description": "Trap focus within a DOM node.",
  5. "main": "dist/focus-trap.js",
  6. "module": "dist/focus-trap.esm.js",
  7. "types": "index.d.ts",
  8. "sideEffects": false,
  9. "files": [
  10. "package.json",
  11. "README.md",
  12. "CHANGELOG.md",
  13. "SECURITY.md",
  14. "LICENSE",
  15. "index.js",
  16. "index.d.ts",
  17. "dist"
  18. ],
  19. "scripts": {
  20. "demo-bundle": "yarn compile:demo",
  21. "format": "prettier --write \"{*,src/**/*,test/**/*,docs/js/**/*,.github/workflows/*,cypress/**/*}.+(js|yml)\"",
  22. "format:check": "prettier --check \"{*,src/**/*,test/**/*,docs/js/**/*,.github/workflows/*,cypress/**/*}.+(js|yml)\"",
  23. "format:watch": "onchange \"{*,src/**/*,test/**/*,docs/js/**/*,.github/workflows/*,cypress/**/*}.+(js|yml)\" -- prettier --write {{changed}}",
  24. "lint": "eslint \"*.js\" \"docs/js/**/*.js\" \"cypress/**/*.js\"",
  25. "clean": "rm -rf ./dist",
  26. "compile:esm": "cross-env BUILD_ENV=esm BABEL_ENV=esm rollup -c",
  27. "compile:cjs": "cross-env BUILD_ENV=cjs BABEL_ENV=es5 rollup -c",
  28. "compile:umd": "cross-env BUILD_ENV=umd BABEL_ENV=es5 rollup -c",
  29. "compile:demo": "cross-env BUILD_ENV=demo BABEL_ENV=es5 rollup -c",
  30. "compile": "yarn compile:esm && yarn compile:cjs && yarn compile:umd",
  31. "build": "yarn clean && yarn compile",
  32. "start": "yarn compile:demo --watch --environment SERVE,RELOAD,IS_CYPRESS_ENV:''",
  33. "start:cypress": "yarn compile:demo --environment SERVE,IS_CYPRESS_ENV:\"$CYPRESS_BROWSER\"",
  34. "test:types": "tsc index.d.ts",
  35. "test:unit": "echo \"No unit tests to run!\"",
  36. "test:cypress": "CYPRESS_BROWSER=ANY start-server-and-test start:cypress 9966 'cypress open'",
  37. "test:cypress:ci": "start-server-and-test start:cypress 9966 'cypress run --browser $CYPRESS_BROWSER --headless'",
  38. "test:chrome": "CYPRESS_BROWSER=chrome yarn test:cypress:ci",
  39. "test": "yarn format:check && yarn lint && yarn test:unit && yarn test:types && CYPRESS_BROWSER=chrome yarn test:cypress:ci",
  40. "prepare": "yarn build",
  41. "prepublishOnly": "yarn test && yarn build",
  42. "release": "yarn build && changeset publish"
  43. },
  44. "repository": {
  45. "type": "git",
  46. "url": "git+https://github.com/focus-trap/focus-trap.git"
  47. },
  48. "keywords": [
  49. "focus",
  50. "accessibility",
  51. "trap",
  52. "capture",
  53. "keyboard",
  54. "modal"
  55. ],
  56. "author": {
  57. "name": "David Clark",
  58. "url": "http://davidtheclark.com/"
  59. },
  60. "license": "MIT",
  61. "bugs": {
  62. "url": "https://github.com/focus-trap/focus-trap/issues"
  63. },
  64. "homepage": "https://github.com/focus-trap/focus-trap#readme",
  65. "dependencies": {
  66. "tabbable": "^5.3.3"
  67. },
  68. "devDependencies": {
  69. "@babel/cli": "^7.17.10",
  70. "@babel/core": "^7.18.2",
  71. "@babel/eslint-parser": "^7.18.2",
  72. "@babel/preset-env": "^7.18.2",
  73. "@changesets/cli": "^2.22.0",
  74. "@rollup/plugin-babel": "^5.3.1",
  75. "@rollup/plugin-commonjs": "^22.0.0",
  76. "@rollup/plugin-node-resolve": "^13.3.0",
  77. "@testing-library/cypress": "^8.0.3",
  78. "@types/jquery": "^3.5.14",
  79. "all-contributors-cli": "^6.20.0",
  80. "babel-loader": "^8.2.5",
  81. "cross-env": "^7.0.3",
  82. "cypress": "^9.7.0",
  83. "cypress-plugin-tab": "^1.0.5",
  84. "eslint": "^8.17.0",
  85. "eslint-config-prettier": "^8.5.0",
  86. "eslint-plugin-cypress": "^2.12.1",
  87. "eslint-plugin-jest": "^26.5.3",
  88. "onchange": "^7.1.0",
  89. "prettier": "^2.6.2",
  90. "rollup": "^2.75.6",
  91. "rollup-plugin-inject-process-env": "^1.3.1",
  92. "rollup-plugin-livereload": "^2.0.5",
  93. "rollup-plugin-serve": "^1.1.0",
  94. "rollup-plugin-sourcemaps": "^0.6.3",
  95. "rollup-plugin-terser": "^7.0.1",
  96. "start-server-and-test": "^1.14.0",
  97. "typescript": "^4.7.3"
  98. }
  99. }