-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
99 lines (99 loc) · 3.2 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
98
99
{
"name": "react-network-state-hook",
"version": "0.3.1",
"main": "./lib/cjs/index.min.js",
"module": "./lib/esm/index.min.js",
"types": "./lib/esm/index.d.ts",
"files": [
"/lib"
],
"engines": {
"node": ">=16.8.0",
"npm": ">=7.24.0"
},
"type": "module",
"scripts": {
"build": "npm run build:esm && npm run minimize:esm && npm run build:cjs && npm run minimize:cjs && build:coverage:shield",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir lib/cjs",
"minimize:esm": "npx uglifyjs ./lib/esm/index.js --output ./lib/esm/index.min.js",
"minimize:cjs": "npx uglifyjs ./lib/cjs/index.js --output ./lib/cjs/index.min.js",
"build:coverage:shield": "./node_modules/jest-coverage-shield/lib/cli.js -d ./coverage",
"format": "npx prettier --write 'src/**/*.{ts,tsx}'",
"lint": "npx eslint --ext .js,.jsx,.ts,.tsx src --color",
"lint:fix": "npx eslint --ext .js,.jsx,.ts,.tsx src --color --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage && coverage-shield && npm run build:coverage:shield",
"prepare": "npx husky install && npx husky set .husky/pre-commit 'npx lint-staged' && git add .husky/pre-commit",
"uninstall-husky": "npm uninstall husky --no-save && git config --unset core.hooksPath && npx rimraf .husky"
},
"jest": {
"coveragePathIgnorePatterns": [
"(/__mocks__/.*|\\.(mock))\\.(ts|tsx|js)$"
],
"collectCoverageFrom": [
"src/*.{ts,tsx}"
],
"transform": {
".(ts|tsx)": "ts-jest"
},
"testRegex": "(/__tests__/.*|\\.(test))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/javierlopezdeancos/react-network-state-hook.git"
},
"keywords": [
"typescript",
"state machine",
"react"
],
"author": {
"name": "Javier Lopez de Ancos",
"email": "javierlopezdeancos@outlook.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/javierlopezdeancos/react-network-state-hook/issues"
},
"homepage": "https://github.com/javierlopezdeancos/react-network-state-hook#readme",
"dependencies": {},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.2.0",
"@types/jest": "^27.5.0",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.3",
"@types/testing-library__jest-dom": "^5.14.3",
"@typescript-eslint/eslint-plugin": "5.23.0",
"@typescript-eslint/parser": "5.23.0",
"eslint": "^7.0.0",
"eslint-config-prettier": "8.5.0",
"eslint-import-resolver-typescript": "2.7.1",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "latest",
"husky": "8.0.1",
"lint-staged": "^13.1.0",
"jest": "^28.0.0",
"jest-config": "^28.1.0",
"jest-coverage-shield": "^1.1.2",
"jest-environment-jsdom": "^28.1.0",
"fetch-mock": "^9.11.0",
"prettier": "2.0.0",
"prettier-eslint": "14.0.2",
"prettier-eslint-cli": "5.0.1",
"ts-jest": "^28.0.0",
"typescript": "^4.6.4"
},
"peerDependencies": {
"react": "^18.1.0"
}
}