generated from the-mes/react-hooks-typescript-npm-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
90 lines (90 loc) · 2.37 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
{
"name": "react-safe-context-hooks",
"version": "1.0.1",
"description": "Make sure the context exists",
"author": "Jakub Biesiada",
"license": "MIT",
"main": "lib/react-safe-context-hooks.cjs.js",
"module": "lib/react-safe-context-hooks.esm.js",
"types": "lib/index.d.ts",
"scripts": {
"prepack": "npm run prettier && npm run lint && npm run build",
"clean": "rimraf lib/*",
"build": "rollup -c",
"prebuild": "npm run clean",
"test": "jest --coverage",
"watch": "npm run build -- --watch",
"watch:test": "npm run test -- --watch",
"lint": "eslint 'src/**/*.ts' --fix",
"prettier": "prettier --write 'src/**/*.ts'",
"commit": "git-cz",
"semantic-release": "semantic-release",
"prepare": "husky install",
"pre-commit": "lint-staged"
},
"repository": {
"type": "git",
"url": "https://github.com/cool-hooks/react-safe-context-hooks.git"
},
"keywords": [
"react",
"api",
"hooks",
"handler",
"context",
"error",
"exists",
"confidence"
],
"bugs": {
"url": "https://github.com/cool-hooks/react-safe-context-hooks/issues"
},
"homepage": "https://github.com/cool-hooks/react-safe-context-hooks#readme",
"devDependencies": {
"@rollup/plugin-node-resolve": "^13.1.1",
"@testing-library/react-hooks": "^7.0.2",
"@types/jest": "^27.0.3",
"@types/react": "^17.0.38",
"@typescript-eslint/parser": "^5.8.0",
"cz-conventional-changelog": "3.3.0",
"cz-emoji": "^1.3.1",
"eslint": "^8.5.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"husky": "^7.0.4",
"jest": "^27.4.5",
"lint-staged": "^12.1.4",
"prettier": "^2.5.1",
"react": "^17.0.2",
"react-test-renderer": "^17.0.2",
"rollup": "^2.62.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.1",
"semantic-release": "^18.0.1",
"semantic-release-gitmoji": "^1.4.2",
"ts-jest": "^27.1.2",
"typescript": "^4.5.4"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"config": {
"commitizen": {
"path": "cz-emoji"
}
},
"jest": {
"testEnvironment": "jsdom",
"transform": {
"^.+\\.tsx?$": "ts-jest"
}
},
"lint-staged": {
"src/**/*.ts": [
"npm run prettier",
"npm run lint"
]
}
}