package.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "name": "compute-scroll-into-view",
  3. "version": "3.1.1",
  4. "description": "The engine that powers scroll-into-view-if-needed",
  5. "keywords": [
  6. "if-needed",
  7. "scroll",
  8. "scroll-into-view",
  9. "scroll-into-view-if-needed",
  10. "scrollIntoView",
  11. "scrollIntoViewIfNeeded",
  12. "scrollMode",
  13. "typescript"
  14. ],
  15. "homepage": "https://scroll-into-view.dev",
  16. "repository": {
  17. "type": "git",
  18. "url": "git+https://github.com/scroll-into-view/compute-scroll-into-view.git"
  19. },
  20. "license": "MIT",
  21. "author": "Cody Olsen",
  22. "sideEffects": false,
  23. "type": "module",
  24. "exports": {
  25. ".": {
  26. "types": "./dist/index.d.ts",
  27. "source": "./src/index.ts",
  28. "require": "./dist/index.cjs",
  29. "import": "./dist/index.js",
  30. "default": "./dist/index.js"
  31. },
  32. "./package.json": "./package.json"
  33. },
  34. "main": "./dist/index.cjs",
  35. "module": "./dist/index.js",
  36. "source": "./src/index.ts",
  37. "typings": "./dist/index.d.ts",
  38. "files": [
  39. "dist",
  40. "src"
  41. ],
  42. "scripts": {
  43. "prebuild": "npx rimraf 'dist'",
  44. "build": "pkg build --strict",
  45. "prepublishOnly": "npm run build",
  46. "test": "npx cross-env JEST_PUPPETEER_CONFIG='jest-puppeteer.config.cjs' jest -c integration/jest.config.cjs",
  47. "typecheck": "tsc"
  48. },
  49. "browserslist": [
  50. "> 0.2% and supports es6-module and supports es6-module-dynamic-import and not dead",
  51. "maintained node versions"
  52. ],
  53. "prettier": {
  54. "semi": false,
  55. "singleQuote": true
  56. },
  57. "devDependencies": {
  58. "@sanity/pkg-utils": "^2.2.5",
  59. "@sanity/semantic-release-preset": "^4.0.0",
  60. "@types/expect-puppeteer": "^5.0.2",
  61. "@types/jest": "^29.4.0",
  62. "@types/jest-environment-puppeteer": "^5.0.3",
  63. "@types/puppeteer": "^7.0.4",
  64. "cross-env": "^7.0.3",
  65. "jest": "^29.5.0",
  66. "jest-junit": "^15.0.0",
  67. "jest-puppeteer": "^8.0.0",
  68. "prettier": "^2.8.4",
  69. "prettier-plugin-packagejson": "^2.4.3",
  70. "puppeteer": "^19.7.0",
  71. "rimraf": "^4.1.2",
  72. "serve": "^14.2.0",
  73. "typescript": "^5.0.0"
  74. },
  75. "bundlesize": [
  76. {
  77. "path": "./dist/index.js",
  78. "maxSize": "3 kB",
  79. "compression": "none"
  80. }
  81. ]
  82. }