-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
73 lines (73 loc) · 1.93 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
{
"name": "condition-component",
"author": "Viet Anh <[email protected]> (https://portfolio-vietanhle.vercel.app/)",
"description": "A React-based package that provides components to replace traditional `if-else` and `switch-case` statements also array method `filter` and `map`, making conditional rendering easier and cleaner in your React applications.",
"keywords": [
"replace traditional conditional logic",
"reactjs condition",
"js/ts condition",
"condition",
"if",
"else",
"elseif",
"switch",
"case",
"default",
"filter",
"map",
"method chaining"
],
"private": false,
"license": "MIT",
"version": "0.1.0",
"type": "module",
"main": "dist/index.umd.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.es.js",
"require": "./dist/index.umd.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"/dist"
],
"repository": {
"type": "git",
"url": "https://github.com/BrianLe188/condition-component"
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build --mode production",
"lint": "eslint .",
"preview": "vite preview",
"test": "vitest"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@types/node": "^22.5.5",
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-react-swc": "^3.7.0",
"eslint": "^9.9.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"global-jsdom": "^25.0.0",
"globals": "^15.9.0",
"jsdom": "^25.0.0",
"typescript": "^5.5.3",
"typescript-eslint": "^8.0.1",
"vite": "^5.4.1",
"vite-plugin-dts": "^4.2.1",
"vitest": "^2.1.1"
}
}