-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
99 lines (99 loc) · 2.79 KB
/
package.json
File metadata and controls
99 lines (99 loc) · 2.79 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "react-smart-conditional",
"description": "Manage conditional rendering in react js and it's frameworks like a pro",
"version": "1.0.4",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.module.js",
"esmodule": "dist/index.mjs",
"umd:main": "dist/index.umd.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"module": "./dist/index.module.js",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
},
"sideEffects": false,
"scripts": {
"lint": "eslint '**/*.{js,ts,tsx}' --ignore-pattern 'dist/'",
"lint:fix": "pnpm lint --fix",
"prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\"",
"build-only": "rm -rf ./dist/*; microbundle build --entry src/index.ts --name react-smart-conditional --tsconfig tsconfig.json",
"build": "pnpm run build-only && size-limit",
"test": "jest",
"prepublishOnly": "pnpm run test && pnpm run build",
"prepare": "husky"
},
"files": [
"dist"
],
"keywords": [
"react",
"conditional",
"render",
"conditional-render",
"react-conditional-render"
],
"author": "Wilson Adenuga <oluwatunmiseadenuga@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/oluwatunmiisheii/react-smart-conditional.git"
},
"homepage": "https://github.com/oluwatunmiisheii/react-smart-conditional#readme",
"bugs": {
"url": "https://github.com/oluwatunmiisheii/react-smart-conditional/issues"
},
"devDependencies": {
"@commitlint/cli": "^19.4.1",
"@commitlint/config-conventional": "^19.4.1",
"@commitlint/types": "^19.0.3",
"@size-limit/preset-small-lib": "^11.1.4",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.5",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.2",
"husky": "^9.1.5",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.8",
"microbundle": "^0.15.1",
"prettier": "^3.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"size-limit": "^11.1.4",
"ts-jest": "^29.2.5",
"typescript": "^5.5.4",
"typescript-eslint": "^8.4.0"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
},
"size-limit": [
{
"path": "dist/index.js",
"limit": "1 KB"
},
{
"path": "dist/index.module.js",
"limit": "1 KB"
},
{
"path": "dist/index.umd.js",
"limit": "1 KB"
},
{
"path": "dist/index.mjs",
"limit": "1 KB"
}
]
}