1 | {
|
2 | "name": "compute-scroll-into-view",
|
3 | "description": "The engine that powers scroll-into-view-if-needed",
|
4 | "license": "MIT",
|
5 | "author": "Cody Olsen",
|
6 | "homepage": "https://scroll-into-view-if-needed.netlify.com",
|
7 | "repository": {
|
8 | "type": "git",
|
9 | "url": "git+https://github.com/stipsan/compute-scroll-into-view.git"
|
10 | },
|
11 | "version": "1.0.17",
|
12 | "main": "dist/index.js",
|
13 | "module": "dist/index.module.js",
|
14 | "files": [
|
15 | "dist",
|
16 | "typings",
|
17 | "umd/compute-scroll-into-view.min.js",
|
18 | "umd/compute-scroll-into-view.min.js.map"
|
19 | ],
|
20 | "scripts": {
|
21 | "prebuild": "rimraf 'dist' 'umd'",
|
22 | "build": "npm run build:dist && npm run build:umd",
|
23 | "build:dist": "microbundle -f cjs,es",
|
24 | "build:umd": "microbundle -f umd -o umd",
|
25 | "dev": "concurrently 'npm run typecheck -- --watch' 'npm run build:dist -- --watch' 'npm run build:umd -- --watch'",
|
26 | "prepublishOnly": "unset npm_config_cafile && npm run build",
|
27 | "test": "jest -c integration/jest.config.js",
|
28 | "typecheck": "tsc --noEmit"
|
29 | },
|
30 | "sideEffects": false,
|
31 | "typings": "typings/index.d.ts",
|
32 | "devDependencies": {
|
33 | "concurrently": "5.3.0",
|
34 | "husky": "5.1.0",
|
35 | "jest": "26.6.3",
|
36 | "jest-junit": "12.0.0",
|
37 | "jest-puppeteer": "4.4.0",
|
38 | "lint-staged": "10.5.4",
|
39 | "microbundle": "^0.13.0",
|
40 | "prettier": "2.2.1",
|
41 | "prettier-package-json": "2.1.3",
|
42 | "puppeteer": "5.5.0",
|
43 | "rimraf": "3.0.2",
|
44 | "serve": "11.3.2",
|
45 | "typescript": "4.1.5"
|
46 | },
|
47 | "keywords": [
|
48 | "if-needed",
|
49 | "scroll",
|
50 | "scroll-into-view",
|
51 | "scroll-into-view-if-needed",
|
52 | "scrollIntoView",
|
53 | "scrollIntoViewIfNeeded",
|
54 | "scrollMode",
|
55 | "typescript"
|
56 | ],
|
57 | "browserify": {
|
58 | "transform": [
|
59 | "loose-envify"
|
60 | ]
|
61 | },
|
62 | "bundlesize": [
|
63 | {
|
64 | "path": "./umd/compute-scroll-into-view.min.js",
|
65 | "maxSize": "3 kB",
|
66 | "compression": "none"
|
67 | }
|
68 | ],
|
69 | "husky": {
|
70 | "hooks": {
|
71 | "pre-commit": "lint-staged"
|
72 | }
|
73 | },
|
74 | "lint-staged": {
|
75 | "*.{js,ts,tsx,json,md}": "prettier --write",
|
76 | "**/package.json": "prettier-package-json --write"
|
77 | },
|
78 | "prettier": {
|
79 | "semi": false,
|
80 | "singleQuote": true,
|
81 | "trailingComma": "es5"
|
82 | },
|
83 | "release": {
|
84 | "prepare": [
|
85 | "@semantic-release/npm"
|
86 | ]
|
87 | },
|
88 | "source": "src/index.ts",
|
89 | "umd:main": "umd/compute-scroll-into-view.min.js"
|
90 | }
|