Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
105 lines (105 loc) · 2.85 KB
/
Copy pathpackage.json
File metadata and controls
105 lines (105 loc) · 2.85 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
{
"name": "hotkeys-js",
"description": "A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.",
"version": "4.1.4",
"type": "module",
"main": "dist/hotkeys-js.umd.cjs",
"module": "dist/hotkeys-js.js",
"browser": "dist/hotkeys-js.min.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/hotkeys-js.js",
"require": "./dist/hotkeys-js.umd.cjs"
},
"./package.json": "./package.json"
},
"scripts": {
"prepare": "npm run build:lib && husky",
"lint": "eslint src website",
"type-check": "tsc --noEmit",
"watch": "vite build --watch",
"build:lib": "vite build",
"build": "npm run type-check && npm run build:lib && npm run doc && npm run lint",
"pretest": "npm run build",
"test": "jest --coverage --detectOpenHandles",
"test:watch": "jest --watch",
"doc": "vite build --config website/vite.config.ts",
"start": "vite --config website/vite.config.ts"
},
"files": [
"dist",
"doc"
],
"keywords": [
"hotkey",
"hotkeys",
"hotkeys-js",
"hotkeysjs",
"key",
"keys",
"keyboard",
"shortcuts",
"keypress"
],
"author": "kenny wong <wowohoo@qq.com>",
"license": "MIT",
"homepage": "https://jaywcjlove.github.io/hotkeys-js",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"repository": {
"type": "git",
"url": "git+https://github.com/jaywcjlove/hotkeys-js.git"
},
"devDependencies": {
"@eslint/js": "^9.39.5",
"@microsoft/api-extractor": "^7.60.1",
"@rollup/plugin-terser": "^1.0.2",
"@types/node": "^24.19.2",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@uiw/react-github-corners": "^1.5.15",
"@uiw/react-mac-keyboard": "^1.1.7",
"@uiw/react-markdown-preview": "^5.2.1",
"@uiw/react-shields": "^2.0.2",
"@vitejs/plugin-react": "^5.2.0",
"@wcj/dark-mode": "~1.1.1",
"eslint": "^9.39.5",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"globals": "^17.14.0",
"husky": "^9.1.7",
"jest": "^30.5.2",
"jest-environment-jsdom": "^30.5.2",
"lint-staged": "^17.6.0",
"puppeteer": "~13.7.0",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.72.1",
"vite": "^7.3.7",
"vite-plugin-dts": "^5.1.2"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"lint-staged": {
"src/**/*.{js,ts}": "eslint",
"website/**/*.{js,jsx,ts,tsx}": "eslint"
},
"overrides": {
"react": "^19.3.1",
"react-dom": "^19.3.1"
}
}