UNPKG

compute-scroll-into-view

Version:

The engine that powers scroll-into-view-if-needed

90 lines • 2.26 kB
{ "name": "compute-scroll-into-view", "version": "3.2.2", "description": "The engine that powers scroll-into-view-if-needed", "keywords": [ "if-needed", "scroll", "scroll-into-view", "scroll-into-view-if-needed", "scrollIntoView", "scrollIntoViewIfNeeded", "scrollMode", "typescript" ], "homepage": "https://scroll-into-view.dev", "repository": { "type": "git", "url": "git+https://github.com/scroll-into-view/compute-scroll-into-view.git" }, "license": "MIT", "author": "Cody Olsen", "sideEffects": false, "type": "module", "exports": { ".": { "types": "./dist/index.d.ts", "source": "./src/index.ts", "require": "./dist/index.cjs", "import": "./dist/index.js", "default": "./dist/index.js" }, "./package.json": "./package.json" }, "main": "./dist/index.cjs", "module": "./dist/index.js", "source": "./src/index.ts", "typings": "./dist/index.d.ts", "files": [ "dist", "src" ], "browserslist": [ "chrome 79", "edge 79", "firefox 72", "ios_saf 13", "safari 13", "opera 66", "node 12" ], "prettier": { "semi": false, "singleQuote": true }, "devDependencies": { "@changesets/changelog-github": "^1.0.1", "@changesets/cli": "^3.0.3", "@sanity/pkg-utils": "^2.2.5", "@types/jest": "^29.4.0", "cross-env": "^7.0.3", "es-check": "^9.8.1", "jest": "^29.5.0", "jest-junit": "^15.0.0", "jest-puppeteer": "^11.0.0", "prettier": "^2.8.4", "prettier-plugin-packagejson": "^2.4.3", "puppeteer": "^25.16.0", "rimraf": "^4.1.2", "serve": "^14.2.0", "typescript": "^5.0.0" }, "bundlesize": [ { "path": "./dist/index.js", "maxSize": "3 kB", "compression": "none" } ], "publishConfig": { "access": "public", "provenance": true }, "scripts": { "build": "rimraf 'dist' && pkg build --strict && pnpm run check:es", "check:es": "es-check es2019 dist/index.cjs && es-check es2019 --module dist/index.js", "test": "cross-env JEST_PUPPETEER_CONFIG='jest-puppeteer.config.cjs' jest -c integration/jest.config.cjs", "typecheck": "tsc", "release": "pnpm build && changeset publish" } }