react-hooks-core 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,91 @@
1
+ {
2
+ "name": "react-hooks-core",
3
+ "version": "1.0.0",
4
+ "description": "Production-ready React hooks library with TypeScript and SSR support",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ },
14
+ "./browser": {
15
+ "types": "./dist/browser/index.d.ts",
16
+ "import": "./dist/browser/index.mjs",
17
+ "require": "./dist/browser/index.js"
18
+ }
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "README.md",
23
+ "LICENSE"
24
+ ],
25
+ "author": "NightDevilPT",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/NightDevilPT/react-hooks-utils?tab=readme-ov-file"
29
+ },
30
+ "scripts": {
31
+ "build": "tsup",
32
+ "test": "jest",
33
+ "lint": "eslint src",
34
+ "type-check": "tsc --noEmit",
35
+ "format": "prettier --write \"src/**/*.{ts,tsx}\"",
36
+ "format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
37
+ "deploy": "npm publish",
38
+ "deploy:patch": "npm run prepublishOnly && npm version patch && npm publish",
39
+ "deploy:minor": "npm run prepublishOnly && npm version minor && npm publish",
40
+ "deploy:major": "npm run prepublishOnly && npm version major && npm publish",
41
+ "link": "npm run build && npm link",
42
+ "prepublishOnly": "npm run test && npm run lint && npm run type-check && npm run format && npm run format:check && npm run build",
43
+ "prepare": "husky"
44
+ },
45
+ "keywords": [
46
+ "react",
47
+ "hooks",
48
+ "react-hooks",
49
+ "nextjs",
50
+ "typescript",
51
+ "ssr",
52
+ "device-detection",
53
+ "browser-detection"
54
+ ],
55
+ "license": "MIT",
56
+ "peerDependencies": {
57
+ "react": "^19.2.3",
58
+ "react-dom": "^19.2.3"
59
+ },
60
+ "devDependencies": {
61
+ "@testing-library/jest-dom": "^6.9.1",
62
+ "@testing-library/react": "^16.3.1",
63
+ "@types/jest": "^30.0.0",
64
+ "@types/node": "^25.0.3",
65
+ "@types/react": "^19.2.7",
66
+ "@types/react-dom": "^19.2.3",
67
+ "@typescript-eslint/eslint-plugin": "^8.50.1",
68
+ "@typescript-eslint/parser": "^8.50.1",
69
+ "eslint": "^9.39.2",
70
+ "eslint-plugin-react": "^7.37.5",
71
+ "eslint-plugin-react-hooks": "^7.0.1",
72
+ "globals": "^16.5.0",
73
+ "husky": "^9.1.7",
74
+ "jest-environment-jsdom": "^30.2.0",
75
+ "lint-staged": "^16.2.7",
76
+ "prettier": "^3.7.4",
77
+ "rimraf": "^6.1.2",
78
+ "ts-jest": "^29.4.6",
79
+ "tsup": "^8.5.1",
80
+ "typescript": "^5.9.3"
81
+ },
82
+ "dependencies": {
83
+ "jest": "^30.2.0"
84
+ },
85
+ "lint-staged": {
86
+ "src/**/*.{ts,tsx}": [
87
+ "prettier --write",
88
+ "eslint --fix"
89
+ ]
90
+ }
91
+ }