-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
83 lines (83 loc) · 2.55 KB
/
Copy pathpackage.json
File metadata and controls
83 lines (83 loc) · 2.55 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
{
"name": "@pearces/react-ws-hook",
"version": "0.3.15",
"description": "A custom react hook to communicate over websockets",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/mjs/index.js",
"require": "./lib/cjs/index.js"
}
},
"type": "module",
"main": "./lib/cjs/index.js",
"module": "./lib/mjs/index.js",
"types": "./lib/index.d.ts",
"files": [
"lib",
"*.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/pearces/react-ws-hook.git"
},
"keywords": [
"react",
"npm",
"websocket",
"hook",
"node"
],
"author": "Stephen Pearce (https://github.com/pearces)",
"license": "MIT",
"bugs": {
"url": "https://github.com/pearces/react-ws-hook/issues"
},
"homepage": "https://github.com/pearces/react-ws-hook#readme",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"engines": {
"node": ">=14.17.0"
},
"devDependencies": {
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.2",
"@types/jest": "^30.0.0",
"@types/node": "^24.13.2",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@types/ws": "^8.18.1",
"eslint": "^9.39.4",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.6",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"globals": "^17.6.0",
"jest": "^30.4.2",
"jest-environment-jsdom": "^30.4.1",
"jiti": "^2.7.0",
"prettier": "^3.8.4",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"ts-jest": "^29.4.11",
"tsc-alias": "^1.8.17",
"typescript": "^6.0.3",
"typescript-eslint": "^8.62.0",
"ws": "^8.21.0"
},
"peerDependencies": {
"react": "^19.2.5"
},
"scripts": {
"test": "npm run lint && npm run typecheck && npm run unit",
"lint": "eslint src",
"unit": "jest --runInBand",
"typecheck": "tsc --noEmit",
"build:module": "tsc --module es2022 --project tsconfig.build.json --outDir lib/mjs && tsc-alias --outDir lib/mjs && node utils/copy.cjs static/package.mjs.json lib/mjs/package.json",
"build:node": "tsc --module commonjs --project tsconfig.build.json --outDir lib/cjs && node utils/copy.cjs static/package.cjs.json lib/cjs/package.json",
"generate:types": "tsc --module es2022 --project tsconfig.build.json --removeComments false --declaration --emitDeclarationOnly --outDir lib",
"build": "npm run clean && npm run build:module && npm run build:node && npm run generate:types",
"clean": "node utils/clean.cjs lib"
}
}