package.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. "name": "compute-scroll-into-view",
  3. "version": "1.0.20",
  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. "exports": {
  24. ".": {
  25. "types": "./typings/index.d.ts",
  26. "source": "./src/index.ts",
  27. "import": "./dist/index.mjs",
  28. "require": "./dist/index.js",
  29. "default": "./dist/index.mjs"
  30. },
  31. "./package.json": "./package.json"
  32. },
  33. "main": "dist/index.js",
  34. "umd:main": "umd/compute-scroll-into-view.min.js",
  35. "module": "dist/index.mjs",
  36. "source": "src/index.ts",
  37. "typings": "typings/index.d.ts",
  38. "files": [
  39. "dist",
  40. "typings",
  41. "umd/compute-scroll-into-view.min.js",
  42. "umd/compute-scroll-into-view.min.js.map"
  43. ],
  44. "scripts": {
  45. "prebuild": "rimraf 'dist' 'umd'",
  46. "build": "npm run build:dist && npm run build:umd",
  47. "build:dist": "microbundle -f cjs,es",
  48. "build:umd": "microbundle -f umd -o umd",
  49. "prepublishOnly": "npm run build",
  50. "test": "jest -c integration/jest.config.js",
  51. "typecheck": "tsc --noEmit"
  52. },
  53. "husky": {
  54. "hooks": {
  55. "pre-commit": "lint-staged"
  56. }
  57. },
  58. "lint-staged": {
  59. "*.{js,ts,tsx,json,md}": "prettier --write"
  60. },
  61. "browserify": {
  62. "transform": [
  63. "loose-envify"
  64. ]
  65. },
  66. "prettier": {
  67. "semi": false,
  68. "singleQuote": true
  69. },
  70. "devDependencies": {
  71. "@sanity/semantic-release-preset": "^2.0.2",
  72. "husky": "^8.0.2",
  73. "jest": "^29.3.1",
  74. "jest-junit": "^15.0.0",
  75. "jest-puppeteer": "^6.1.1",
  76. "lint-staged": "^13.0.4",
  77. "microbundle": "^0.15.1",
  78. "prettier": "^2.8.0",
  79. "prettier-plugin-packagejson": "^2.3.0",
  80. "puppeteer": "^19.3.0",
  81. "rimraf": "^3.0.2",
  82. "serve": "^14.1.2",
  83. "typescript": "^4.9.3"
  84. },
  85. "bundlesize": [
  86. {
  87. "path": "./umd/compute-scroll-into-view.min.js",
  88. "maxSize": "3 kB",
  89. "compression": "none"
  90. }
  91. ]
  92. }