package.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "name": "@thednp/position-observer",
  3. "version": "1.0.7",
  4. "author": "thednp",
  5. "license": "MIT",
  6. "description": "🏯 PositionObserver is a JavaScript tool that provides a way to asynchronously observe changes in the position of a target element within its viewport.",
  7. "homepage": "https://thednp.github.io/position-observer/",
  8. "source": "./src/index.ts",
  9. "main": "./dist/index.js",
  10. "module": "./dist/index.mjs",
  11. "exports": {
  12. ".": {
  13. "types": "./dist/index.d.ts",
  14. "require": "./dist/index.cjs",
  15. "import": "./dist/index.mjs"
  16. }
  17. },
  18. "bugs": {
  19. "url": "https://github.com/thednp/position-observer/issues"
  20. },
  21. "publishConfig": {
  22. "access": "public",
  23. "registry": "https://registry.npmjs.org/"
  24. },
  25. "repository": {
  26. "type": "git",
  27. "url": "git+https://github.com/thednp/position-observer.git"
  28. },
  29. "keywords": [
  30. "position-observer",
  31. "observer",
  32. "intersection",
  33. "resize",
  34. "position",
  35. "typescript"
  36. ],
  37. "dependencies": {
  38. "@thednp/shorty": "^2.0.10"
  39. },
  40. "devDependencies": {
  41. "@types/node": "^20.17.9",
  42. "@vitest/browser": "^2.1.8",
  43. "@vitest/coverage-istanbul": "^2.1.8",
  44. "@vitest/ui": "^2.1.8",
  45. "playwright": "^1.49.0",
  46. "typescript": "5.6.3",
  47. "vite": "^5.4.11",
  48. "vite-plugin-dts": "^4.3.0",
  49. "vitest": "^2.1.8"
  50. },
  51. "engines": {
  52. "node": ">=16",
  53. "pnpm": ">=8.6.0"
  54. },
  55. "scripts": {
  56. "pre-test": "pnpm clean-coverage",
  57. "dev": "vite --open ./demo/index.html --port 8577",
  58. "serve": "vite --open ./docs/index.html --port 8577",
  59. "test": "pnpm pre-test && vitest --config vitest.config.mts",
  60. "test-ui": "pnpm pre-test && vitest --config vitest.config-ui.mts --browser=chrome",
  61. "clean-coverage": "rm -rf coverage .nyc_output",
  62. "badges": "npx -p dependency-version-badge update-badge typescript vitest vite",
  63. "build": "pnpm vite build",
  64. "build:all": "pnpm build && pnpm build:docs",
  65. "build:docs": "vite build demo --config demo/vite.config.mts",
  66. "lint": "deno lint src && pnpm check:ts",
  67. "format": "deno fmt src",
  68. "check:ts": "tsc --noEmit"
  69. }
  70. }