-
Notifications
You must be signed in to change notification settings - Fork 20
/
package.json
68 lines (68 loc) · 1.84 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-beforeunload",
"version": "2.6.0",
"description": "React component and hook which listens to the beforeunload window event.",
"type": "module",
"files": [
"dist"
],
"main": "./dist/react-beforeunload.cjs",
"module": "./dist/react-beforeunload.js",
"exports": {
".": {
"import": "./dist/react-beforeunload.js",
"require": "./dist/react-beforeunload.cjs"
}
},
"sideEffects": false,
"scripts": {
"build": "vite build",
"coverage": "NODE_OPTIONS=--experimental-vm-modules jest --coverage",
"lint": "eslint .",
"format": "prettier --write .",
"prepare": "npm run build && husky install",
"preversion": "npm run lint && npm run test",
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jacobbuck/react-beforeunload.git"
},
"keywords": [
"beforeunload",
"component",
"event",
"hook",
"onbeforeunload",
"react",
"unload",
"window"
],
"author": "Jacob Buck <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/jacobbuck/react-beforeunload/issues"
},
"homepage": "https://github.com/jacobbuck/react-beforeunload#readme",
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsdoc": "^46.2.6",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"lint-staged": "^13.2.1",
"prettier": "^2.8.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vite": "^4.2.1"
},
"peerDependencies": {
"react": "^16.8.0 || 17 || 18"
}
}