-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
78 lines (78 loc) · 2.47 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
{
"name": "react-use-pagination",
"version": "1.1.1",
"description": "A React hook to help manage pagination state",
"keywords": [
"pagination",
"paging",
"pager",
"table"
],
"author": "erictooth",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/erictooth/react-use-pagination.git"
},
"homepage": "https://github.com/erictooth/react-use-pagination/blob/master/README.md",
"bugs": {
"url": "https://github.com/erictooth/react-use-pagination/issues"
},
"sideEffects": false,
"main": "dist-node/react-use-pagination.js",
"module": "dist-module/react-use-pagination.mjs",
"types": "dist-types/index.d.ts",
"files": [
"dist-module",
"dist-node",
"dist-types"
],
"scripts": {
"build": "npm run build:cjs && npm run build:esm && npm run build:types",
"build:cjs": "esbuild src/index.ts --sourcemap --format=cjs --outfile=dist-node/react-use-pagination.js",
"build:esm": "esbuild src/index.ts --sourcemap --format=esm --outfile=dist-module/react-use-pagination.mjs",
"build:types": "tsc --emitDeclarationOnly --declaration --declarationMap false --declarationDir dist-types",
"lint": "eslint src --ext=ts,tsx",
"prepack": "npm run build",
"test": "jest --coverage",
"typecheck": "tsc --noEmit"
},
"peerDependencies": {
"react": "^16.8.0 || ^17 || ^18"
},
"devDependencies": {
"@erictooth/eslint-config": "^3",
"@erictooth/prettier-config": "^4",
"@erictooth/semantic-release-npm-github-config": "^1",
"@testing-library/react-hooks": "^7.0.0",
"@types/jest": "^26",
"@types/react": "^17",
"esbuild": "^0.12.9",
"eslint": "^7",
"jest": "^27",
"prettier": "^2",
"react-test-renderer": "^17.0.2",
"ts-jest": "^27",
"typescript": "^4"
},
"eslintConfig": {
"extends": [
"@erictooth/eslint-config",
"@erictooth/eslint-config/typescript",
"@erictooth/eslint-config/react"
]
},
"prettier": "@erictooth/prettier-config",
"release": {
"extends": "@erictooth/semantic-release-npm-github-config",
"branches": [
"master"
]
},
"jest": {
"preset": "ts-jest",
"collectCoverageFrom": [
"src/**/{!(index),}.{ts, tsx}"
]
}
}