-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
58 lines (58 loc) · 1.82 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
{
"name": "react-context-switch",
"version": "0.1.4",
"description": "Simple conditional react render switch using context",
"repository": "https://github.com/VldMrgnn/react-context-switch.git",
"author": "Vlad Marginean <[email protected]>",
"license": "ISC",
"private": false,
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"scripts": {
"clean": "rm -rf dist",
"format": "prettier --write \"**/*.{ts,tsx}\"",
"fprepare": "npm run format && npm run build",
"lint": "eslint \"**/*.{js,jsx,ts,tsx}\"",
"test": "jest --config jestconfig.json",
"prepare": "npm run build && husky install",
"prepublishOnly": "npm run clean && npm test && npm run format && npm run lint",
"build": "npm run build:esm && npm run build:cjs && cp package.json README.md ./dist",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"workflow": "jest --forceExit --detectOpenHandles"
},
"keywords": [
"react",
"render",
"switch",
"conditional"
],
"devDependencies": {
"@testing-library/react": "^13.4.0",
"@types/jest": "^29.2.5",
"@types/react": "^18.0.26",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.1",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.0",
"jest": "^29.3.1",
"jest-canvas-mock": "^2.4.0",
"jest-environment-jsdom": "^29.3.1",
"prettier": "^2.8.3",
"react": ">=16.8",
"react-dom": ">=16.8",
"ts-jest": "^29.0.5",
"typescript": "^4.9.4"
},
"dependencies": {
"react-dom": ">=16.8"
},
"lint-staged": {
"*.tsx": "prettier --write"
}
}