/
package.json
68 lines (68 loc) · 1.79 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"name": "react-scroll-restoration",
"version": "1.0.10",
"description": "Support for scroll restoration with React router",
"main": "dist/index.js",
"scripts": {
"build": "rollup -c",
"pre-publish": "yarn build",
"lint": "eslint . --ext .ts",
"lint-fix": "eslint . --ext .ts --fix",
"prettier-format": "prettier --config .prettierrc 'src/**/*.ts' --write"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nanyang24/scroll-restoration.git"
},
"keywords": [
"react-router",
"scroll-restoration"
],
"author": "Nan Yang",
"license": "MIT",
"bugs": {
"url": "https://github.com/nanyang24/scroll-restoration/issues"
},
"homepage": "https://github.com/nanyang24/scroll-restoration#readme",
"peerDependencies": {
"react": ">=16.8",
"react-router-dom": "^4.0.0 || ^5.0.0"
},
"devDependencies": {
"@babel/core": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
"@rollup/plugin-babel": "^5.1.0",
"@rollup/plugin-commonjs": "^14.0.0",
"@rollup/plugin-node-resolve": "^8.4.0",
"@rollup/plugin-typescript": "^5.0.2",
"@types/node": "^14.0.27",
"@types/react": "^16.9.44",
"@types/react-router-dom": "^5.1.5",
"@typescript-eslint/eslint-plugin": "^3.7.1",
"@typescript-eslint/parser": "^3.7.1",
"eslint": "^7.6.0",
"eslint-plugin-react": "^7.20.5",
"husky": "^4.2.5",
"lint-staged": "^10.2.11",
"prettier": "^2.0.5",
"react": "^16.13.1",
"react-router-dom": "^5.2.0",
"rollup": "^2.23.0",
"rollup-plugin-terser": "^6.1.0",
"typescript": "^3.9.7"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/*.{js,ts,tsx}": [
"eslint --fix"
]
},
"files": [
"dist"
]
}