-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpackage.json
97 lines (97 loc) · 2.65 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"name": "react-click-away-listener",
"version": "1.0.0-semantic-release",
"description": "A simple click away listener built with React Hooks",
"main": "dist/react-click-away-listener.js",
"module": "dist/react-click-away-listener.es.js",
"types": "dist/index.d.ts",
"umd": "dist/react-click-away-listener.umd.js",
"scripts": {
"test": "jest",
"lint": "eslint src/*",
"coverage": "jest --coverage",
"prepublish": "npm run build",
"build:rollup": "rollup -c rollup.config.js",
"build:declaration": "tsc",
"semantic-release": "semantic-release",
"cleanup": "rimraf dist",
"build": "npm run cleanup && npm-run-all build:*",
"prettier": "prettier --write '{src,__tests__}/*.tsx'",
"print-file-size": "cat dist/react-click-away-listener.js | gzip | wc -c"
},
"files": [
"dist",
"README.md"
],
"author": "Ademola Adegbuyi <[email protected]>",
"license": "MIT",
"repository": {
"url": "https://github.com/ooade/react-click-away-listener"
},
"devDependencies": {
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-node-resolve": "^13.1.3",
"@semantic-release/npm": "^12.0.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.12",
"@typescript-eslint/parser": "^5.14.0",
"coveralls": "^3.1.1",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.3",
"eslint-plugin-react-hooks": "^4.3.0",
"ghooks": "^2.0.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rimraf": "^3.0.2",
"rollup": "^2.79.2",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^5.5.4"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"jest": {
"testEnvironment": "jsdom",
"collectCoverageFrom": [
"<rootDir>/src/**.tsx"
]
},
"config": {
"ghooks": {
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",
"pre-commit": "npm run prettier"
},
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"release": {
"branches": [
"main",
{
"name": "beta",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm"
]
}
}