-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
112 lines (112 loc) · 3.86 KB
/
package.json
File metadata and controls
112 lines (112 loc) · 3.86 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
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"name": "react-rsc-kit",
"version": "1.6.0",
"description": "React hooks and utility components with RSC-safe server/client entrypoints.",
"author": "react-rsc-kit contributors",
"license": "MIT",
"homepage": "https://react-rsc-kit.puskaradhikari.com.np/",
"repository": {
"type": "git",
"url": "git+https://github.com/thepuskar/react-rsc-kit.git"
},
"bugs": {
"url": "https://github.com/thepuskar/react-rsc-kit/issues"
},
"engines": {
"node": ">=20"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./client": {
"types": "./dist/client.d.ts",
"import": "./dist/client.mjs",
"require": "./dist/client.js"
},
"./server": {
"types": "./dist/server.d.ts",
"import": "./dist/server.mjs",
"require": "./dist/server.js"
},
"./hooks": {
"types": "./dist/hooks.d.ts",
"import": "./dist/hooks.mjs",
"require": "./dist/hooks.js"
},
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"dist",
"README.md",
"LICENSE",
"CONTRIBUTING.md",
"CODE_OF_CONDUCT.md",
"SECURITY.md",
"SUPPORT.md"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && tsup",
"dev": "tsup --watch",
"lint": "eslint \"{src/{index.ts,client/**/*.ts,server/**/*.ts,shared/**/*.ts,component/**/*.tsx,hooks/**/*.ts,misc/types.ts,utils/*.ts},tests/**/*.{ts,tsx},vitest.config.ts,tsup.config.ts}\" --max-warnings=0",
"lint:fix": "npm run lint -- --fix",
"format": "prettier \"{README.md,CONTRIBUTING.md,CODE_OF_CONDUCT.md,SECURITY.md,SUPPORT.md,package.json,tsconfig*.json,tsup.config.ts,vitest.config.ts,vitest.setup.ts,.eslintrc.cjs,.prettierrc.json,commitlint.config.cjs,.github/**/*.{yml,yaml,md},src/{index.ts,client/**/*.ts,server/**/*.ts,shared/**/*.ts,component/**/*.tsx,hooks/**/*.ts,utils/**/*.ts},tests/**/*.{ts,tsx}}\" --write",
"format:check": "prettier \"{README.md,CONTRIBUTING.md,CODE_OF_CONDUCT.md,SECURITY.md,SUPPORT.md,package.json,tsconfig*.json,tsup.config.ts,vitest.config.ts,vitest.setup.ts,.eslintrc.cjs,.prettierrc.json,commitlint.config.cjs,.github/**/*.{yml,yaml,md},src/{index.ts,client/**/*.ts,server/**/*.ts,shared/**/*.ts,component/**/*.tsx,hooks/**/*.ts,utils/**/*.ts},tests/**/*.{ts,tsx}}\" --check",
"typecheck": "tsc --noEmit -p tsconfig.json",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"prepare": "husky",
"prepublishOnly": "npm run lint && npm run format:check && npm run typecheck && npm run test && npm run build"
},
"lint-staged": {
"*.{ts,tsx,js,jsx}": [
"eslint --fix",
"prettier --write"
],
"*.{json,md,yml,yaml}": [
"prettier --write"
]
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
},
"devDependencies": {
"@commitlint/cli": "^19.8.0",
"@commitlint/config-conventional": "^19.8.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@types/node": "^25.5.0",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"@vitest/coverage-v8": "^2.1.8",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"husky": "^9.1.7",
"jsdom": "^26.0.0",
"lint-staged": "^15.5.0",
"prettier": "^3.5.3",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"rimraf": "^6.0.1",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^2.1.8"
}
}