package.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "name": "scroll-into-view-if-needed",
  3. "version": "3.1.0",
  4. "description": "Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center",
  5. "keywords": [
  6. "behavior-smooth",
  7. "if-needed",
  8. "polyfill",
  9. "ponyfill",
  10. "scroll",
  11. "scroll-into-view",
  12. "scrollIntoView",
  13. "scrollIntoViewIfNeeded",
  14. "scrollMode",
  15. "smooth",
  16. "smoothscroll",
  17. "typescript"
  18. ],
  19. "homepage": "https://scroll-into-view.dev",
  20. "repository": {
  21. "type": "git",
  22. "url": "git+https://github.com/scroll-into-view/scroll-into-view-if-needed.git"
  23. },
  24. "license": "MIT",
  25. "author": "Cody Olsen",
  26. "sideEffects": false,
  27. "type": "module",
  28. "exports": {
  29. ".": {
  30. "types": "./dist/index.d.ts",
  31. "source": "./src/index.ts",
  32. "require": "./dist/index.cjs",
  33. "import": "./dist/index.js",
  34. "default": "./dist/index.js"
  35. },
  36. "./package.json": "./package.json"
  37. },
  38. "main": "./dist/index.cjs",
  39. "module": "./dist/index.js",
  40. "source": "./src/index.ts",
  41. "typings": "./dist/index.d.ts",
  42. "files": [
  43. "dist",
  44. "src"
  45. ],
  46. "scripts": {
  47. "prebuild": "npm run clean",
  48. "build": "pkg build --strict",
  49. "clean": "npx rimraf 'dist'",
  50. "prepublishOnly": "npm run build",
  51. "typecheck": "tsc && tsc --noEmit -p tests/typescript"
  52. },
  53. "browserslist": [
  54. "> 0.2% and supports es6-module and supports es6-module-dynamic-import and not dead and not IE 11",
  55. "maintained node versions"
  56. ],
  57. "prettier": {
  58. "semi": false,
  59. "singleQuote": true
  60. },
  61. "dependencies": {
  62. "compute-scroll-into-view": "^3.0.2"
  63. },
  64. "devDependencies": {
  65. "@sanity/pkg-utils": "^2.2.5",
  66. "@sanity/semantic-release-preset": "^4.0.0",
  67. "cross-env": "^7.0.3",
  68. "prettier": "^2.8.4",
  69. "prettier-plugin-packagejson": "^2.4.3",
  70. "rimraf": "^4.1.2",
  71. "typescript": "^5.0.0"
  72. },
  73. "bundlesize": [
  74. {
  75. "path": "./dist/index.js",
  76. "maxSize": "3.3 kB",
  77. "compression": "none"
  78. }
  79. ]
  80. }