forked from juliencrn/usehooks-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
84 lines (84 loc) · 2.75 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
{
"name": "usehooks-ts",
"private": false,
"version": "2.9.1",
"description": "React hook library, ready to use, written in Typescript.",
"author": "Julien CARON <juliencaron@protonmail.com>",
"homepage": "https://usehooks-ts.com",
"keywords": [
"typescript",
"react",
"hooks"
],
"license": "MIT",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"workspaces": [
"packages/eslint-config-custom"
],
"scripts": {
"dev": "npm run test:watch",
"prebuild": "npm run clean && npm run test",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc -p tsconfig.build.json --module commonjs --outDir dist/cjs --target es5",
"build:esm": "tsc -p tsconfig.build.json --module esNext --outDir dist/esm --target es6",
"postbuild": "npm run copy:hooks && npm run update:readme",
"pretest": "npm run lint && npm run types-check",
"test": "jest",
"test:watch": "npm run test -- --watch --silent",
"test:coverage": "ts-node ./scripts/coverage.ts",
"clean": "rimraf -rf ./dist",
"format": "prettier --write \"**/*.{json,md,mdx,css,scss,yaml,yml}\"",
"lint": "eslint '**/*.{js,jsx,ts,tsx}'",
"types-check": "tsc --noEmit",
"bump": "bump --tag 'usehooks-ts@%s' --commit 'release: usehooks-ts@%s'",
"deploy": "npm run test && npm run bump && npm publish",
"update:readme": "ts-node ./scripts/updateReadme.ts",
"copy:hooks": "rimraf -rf ./website/generated && ts-node ./scripts/copyHooks.ts",
"plop": "plop && npm run update:readme && npm run format"
},
"devDependencies": {
"@testing-library/react": "^12.1.2",
"@testing-library/react-hooks": "^7.0.2",
"@types/jest": "^29.0.3",
"@types/node": "^18.7.18",
"@types/react": "17.0.0",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.37.0",
"all-contributors-cli": "^6.20.0",
"date-fns": "^2.29.3",
"eslint": "^8.9.0",
"eslint-config-custom": "./packages/eslint-config-custom",
"eslint-plugin-tree-shaking": "^1.10.0",
"jest": "^29.0.3",
"jest-environment-jsdom": "^29.0.3",
"plop": "^3.0.5",
"prettier": "^2.5.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"rimraf": "^3.0.2",
"ts-jest": "^29.0.1",
"ts-node": "^10.2.1",
"typescript": "^4.8.3",
"version-bump-prompt": "^6.1.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"engines": {
"node": ">=16.15.0",
"npm": ">=8"
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/juliencrn/usehooks-ts"
},
"bugs": {
"url": "https://github.com/juliencrn/usehooks-ts/issues"
}
}