-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
61 lines (61 loc) · 2.33 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
{
"name": "react-use-error-boundary-development",
"license": "MIT",
"author": "Tate <[email protected]>",
"homepage": "https://github.com/tatethurston/react-use-error-boundary#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/tatethurston/react-use-error-boundary.git"
},
"bugs": {
"url": "https://github.com/tatethurston/react-use-error-boundary/issues"
},
"scripts": {
"build:commonjs": "yarn tsc --module commonjs --outDir dist/cjs",
"build:module": "yarn tsc",
"build:watch": "yarn build --watch",
"clean": "rm -rf dist/*",
"lint": "yarn typecheck && prettier --check . && prettier-package-json --list-different package.json && eslint .",
"lint:fix": "prettier --write . && prettier-package-json --write package.json && eslint --fix .",
"lint:fix:md": "prettier --write '*.md'",
"lint:fix:package": "prettier-package-json --write package.json",
"lint:fix:ts": "eslint --fix './src/**/*.ts{,x}'",
"package:build": "yarn install && yarn clean && yarn build:commonjs && yarn build:module && yarn package:prune && yarn package:copy:files",
"package:copy:files": "cp ./LICENSE ./README.md dist/ && cp ./public.package.json dist/package.json",
"package:prune": "find dist -name test.* -delete",
"test": "jest src/*",
"test:ci": "yarn test --coverage",
"typecheck": "yarn tsc --noEmit && (cd example && yarn && yarn tsc --noEmit)",
"typecheck:watch": "yarn typecheck --watch"
},
"devDependencies": {
"@babel/preset-env": "^7.18.2",
"@babel/preset-react": "^7.17.12",
"@babel/preset-typescript": "^7.17.12",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^14.2.1",
"@types/jest": "^28.1.3",
"@types/node": "^18.0.0",
"@types/react": "^18.0.14",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/parser": "^5.29.0",
"babel-loader": "^8.2.5",
"codecov": "^3.8.3",
"eslint": "^8.18.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^4.3.0",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"prettier": "^2.7.1",
"prettier-package-json": "^2.6.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^4.7.4"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint:fix"
}
}
}