-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
79 lines (79 loc) · 2.41 KB
/
package.json
File metadata and controls
79 lines (79 loc) · 2.41 KB
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
{
"name": "@dx-kit/react-conditional-match",
"version": "3.0.0",
"description": "A flexible and reusable React component for conditionally rendering child elements. The component supports options for handling multiple matching children and custom fallbacks, and is lightweight and easy to use. This component can help simplify complex rendering logic in your React application and remove the need for ternary statements and if else blocks.",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"types": "./dist/index.d.ts",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "pnpm clean && node build.js && tsc --emitDeclarationOnly --outDir dist",
"clean": "rm -rf dist",
"lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
"lint-fix": "eslint --fix \"{**/*,*}.{js,ts,jsx,tsx}\"",
"test": "vitest",
"coverage": "vitest run --coverage",
"prepare": "pnpm build",
"prepublishOnly": "pnpm coverage && pnpm lint"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hardyyb2/react-conditional-match.git"
},
"keywords": [
"react",
"typescript",
"component",
"conditional rendering",
"multiple matches",
"fallback",
"lightweight",
"flexible",
"reusable",
"UI",
"rendering logic",
"JSX"
],
"author": "hardik badola (hardyyb2)",
"license": "MIT",
"peerDependencies": {
"react": ">=17"
},
"files": [
"dist",
"LICENSE",
"README.md"
],
"dependencies": {
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.2",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^14.0.3",
"@types/jest": "^29.4.0",
"@types/node": "^18.14.2",
"@types/testing-library__jest-dom": "^5.14.5",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"@vitejs/plugin-react": "^3.1.0",
"@vitest/coverage-c8": "^0.29.1",
"esbuild": "^0.17.10",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"jsdom": "^21.1.0",
"prettier": "^2.8.4",
"typescript": "^4.9.5",
"vite": "^4.1.4",
"vitest": "^0.29.1"
}
}