1 | {
|
2 | "name": "scroll-into-view-if-needed",
|
3 | "description": "Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center",
|
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/scroll-into-view-if-needed.git"
|
10 | },
|
11 | "version": "2.2.28",
|
12 | "main": "index.js",
|
13 | "module": "es/index.js",
|
14 | "files": [
|
15 | "es",
|
16 | "typings",
|
17 | "umd"
|
18 | ],
|
19 | "scripts": {
|
20 | "prebuild": "yarn clean",
|
21 | "build": "yarn build:d.ts && yarn build:cjs && yarn build:es && yarn build:umd && yarn build:umd.min",
|
22 | "build:cjs": "BABEL_ENV=cjs babel src -d . --extensions '.ts'",
|
23 | "build:d.ts": "tsc --emitDeclarationOnly",
|
24 | "build:es": "BABEL_ENV=es babel src -d es --extensions '.ts'",
|
25 | "build:umd": "BABEL_ENV=umd NODE_ENV=development rollup -c -f umd -o umd/scroll-into-view-if-needed.js",
|
26 | "build:umd.min": "BABEL_ENV=umd NODE_ENV=production rollup -c -f umd -o umd/scroll-into-view-if-needed.min.js",
|
27 | "clean": "rimraf 'umd' 'es' 'typings'",
|
28 | "precommit": "lint-staged",
|
29 | "dev": "concurrently 'tsc --noEmit --watch' 'tsc --noEmit -p tests/typescript --watch' 'yarn build:cjs --watch' 'yarn build:es --watch' 'yarn build:umd --watch' 'yarn build:umd.min --watch'",
|
30 | "lint": "eslint ./integration-examples",
|
31 | "prepublishOnly": "unset npm_config_cafile && yarn build",
|
32 | "typecheck": "tsc --noEmit && tsc --noEmit -p tests/typescript"
|
33 | },
|
34 | "sideEffects": false,
|
35 | "typings": "typings/index.d.ts",
|
36 | "dependencies": {
|
37 | "compute-scroll-into-view": "^1.0.17"
|
38 | },
|
39 | "devDependencies": {
|
40 | "@babel/cli": "7.13.10",
|
41 | "@babel/core": "7.13.10",
|
42 | "@babel/plugin-external-helpers": "7.12.13",
|
43 | "@babel/preset-env": "7.13.10",
|
44 | "@babel/preset-typescript": "7.13.0",
|
45 | "babel-eslint": "10.1.0",
|
46 | "babel-plugin-add-module-exports": "1.0.4",
|
47 | "babel-plugin-dev-expression": "0.2.2",
|
48 | "concurrently": "6.0.0",
|
49 | "eslint": "7.22.0",
|
50 | "eslint-config-prettier": "6.15.0",
|
51 | "eslint-plugin-import": "2.22.1",
|
52 | "eslint-plugin-react": "7.22.0",
|
53 | "flowgen": "1.13.0",
|
54 | "husky": "4.3.8",
|
55 | "lint-staged": "10.5.4",
|
56 | "prettier": "2.2.1",
|
57 | "prettier-package-json": "2.1.3",
|
58 | "rimraf": "3.0.2",
|
59 | "rollup": "2.42.1",
|
60 | "rollup-plugin-babel": "4.4.0",
|
61 | "rollup-plugin-commonjs": "10.1.0",
|
62 | "rollup-plugin-node-resolve": "5.2.0",
|
63 | "rollup-plugin-replace": "2.2.0",
|
64 | "rollup-plugin-terser": "7.0.2",
|
65 | "semantic-release": "17.4.2",
|
66 | "tslint": "5.20.1",
|
67 | "tslint-config-prettier": "1.18.0",
|
68 | "typescript": "4.2.3"
|
69 | },
|
70 | "keywords": [
|
71 | "behavior-smooth",
|
72 | "if-needed",
|
73 | "polyfill",
|
74 | "ponyfill",
|
75 | "scroll",
|
76 | "scroll-into-view",
|
77 | "scrollIntoView",
|
78 | "scrollIntoViewIfNeeded",
|
79 | "scrollMode",
|
80 | "smooth",
|
81 | "smoothscroll",
|
82 | "typescript"
|
83 | ],
|
84 | "browserify": {
|
85 | "transform": [
|
86 | "loose-envify"
|
87 | ]
|
88 | },
|
89 | "bundlesize": [
|
90 | {
|
91 | "path": "./umd/scroll-into-view-if-needed.min.js",
|
92 | "maxSize": "3.2 kB",
|
93 | "compression": "none"
|
94 | }
|
95 | ],
|
96 | "lint-staged": {
|
97 | "*.js": [
|
98 | "prettier --write",
|
99 | "git add"
|
100 | ],
|
101 | "*.{ts,tsx}": [
|
102 | "prettier --write",
|
103 | "git add"
|
104 | ],
|
105 | "*.json": [
|
106 | "prettier --write",
|
107 | "git add"
|
108 | ],
|
109 | "*.css": [
|
110 | "prettier --write",
|
111 | "git add"
|
112 | ],
|
113 | "*.md": [
|
114 | "prettier --write",
|
115 | "git add"
|
116 | ],
|
117 | "**/package.json": [
|
118 | "prettier-package-json --write",
|
119 | "git add"
|
120 | ],
|
121 | "**/.babelrc": [
|
122 | "prettier --write",
|
123 | "git add"
|
124 | ]
|
125 | },
|
126 | "prettier": {
|
127 | "semi": false,
|
128 | "singleQuote": true,
|
129 | "trailingComma": "es5",
|
130 | "overrides": [
|
131 | {
|
132 | "files": ".babelrc",
|
133 | "options": {
|
134 | "parser": "json"
|
135 | }
|
136 | }
|
137 | ]
|
138 | },
|
139 | "release": {
|
140 | "prepare": [
|
141 | "@semantic-release/npm"
|
142 | ]
|
143 | }
|
144 | }
|