Files

75 lines
2.1 KiB
JSON

{
"name": "@thednp/position-observer",
"version": "1.1.3",
"author": "thednp",
"license": "MIT",
"description": "🏯 PositionObserver is a JavaScript tool that provides a way to asynchronously observe changes in the position of a target element within its viewport.",
"homepage": "https://thednp.github.io/position-observer/",
"source": "./src/index.ts",
"types": "./dist/index.d.mts",
"type": "module",
"exports": {
".": "./dist/index.js",
"./package.json": "./package.json"
},
"bugs": {
"url": "https://github.com/thednp/position-observer/issues"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"files": [
"dist",
"LICENSE",
"README.md",
"package.json"
],
"repository": {
"type": "git",
"url": "git+https://github.com/thednp/position-observer.git"
},
"keywords": [
"position-observer",
"observer",
"intersection",
"resize",
"position",
"typescript"
],
"dependencies": {
"@thednp/shorty": "^2.0.14"
},
"devDependencies": {
"@types/node": "^25.5.0",
"@vitest/browser": "^4.1.2",
"@vitest/browser-playwright": "^4.1.2",
"@vitest/coverage-istanbul": "^4.1.2",
"@vitest/ui": "^4.1.2",
"playwright": "^1.58.2",
"tsdown": "^0.21.5",
"typescript": "6.0.2",
"vite": "^8.0.3",
"vitest": "^4.1.2"
},
"engines": {
"node": ">=16",
"pnpm": ">=8.6.0"
},
"scripts": {
"pre-test": "pnpm clean-coverage",
"dev": "vite --open ./demo/index.html --port 8577",
"serve": "vite --open ./docs/index.html --port 8577",
"test": "pnpm pre-test && vitest --browser.headless",
"test-ui": "pnpm pre-test && vitest --browser --ui",
"clean-coverage": "rm -rf coverage .nyc_output",
"badges": "npx -p dependency-version-badge update-badge typescript vitest vite",
"build": "tsdown",
"build_": "vite build",
"build:all": "pnpm build && pnpm build:docs",
"build:docs": "vite build demo --config demo/vite.config.ts",
"lint": "deno lint src && pnpm check:ts",
"format": "deno fmt src",
"check:ts": "tsc --noEmit"
}
}