Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
143 lines (143 loc) · 5.76 KB
/
Copy pathpackage.json
File metadata and controls
143 lines (143 loc) · 5.76 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"name": "root",
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/TanStack/hotkeys.git"
},
"packageManager": "pnpm@12.8.1",
"engines": {
"pnpm": ">=12.6.0",
"node": "^22.22.3 || ^24.15.0 || >=26.0.0"
},
"type": "module",
"scripts": {
"build": "nx affected --skip-nx-cache --targets=build --exclude=examples/** && size-limit",
"build:all": "nx run-many --targets=build --exclude=examples/** && size-limit",
"build:core": "nx run-many --targets=build --projects=packages/hotkeys",
"changeset": "changeset",
"changeset:publish": "changeset publish",
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm format",
"clean": "find . -name 'dist' -type d -prune -exec rm -rf {} +",
"clean:node_modules": "find . -name 'node_modules' -type d -prune -exec rm -rf {} +",
"clean:all": "pnpm run clean && pnpm run clean:node_modules",
"copy:readme": "cp README.md packages/hotkeys/README.md && cp README.md packages/hotkeys-devtools/README.md && cp README.md packages/angular-hotkeys/README.md && cp README.md packages/react-hotkeys/README.md && cp README.md packages/react-hotkeys-devtools/README.md && cp README.md packages/preact-hotkeys/README.md && cp README.md packages/preact-hotkeys-devtools/README.md && cp README.md packages/solid-hotkeys/README.md && cp README.md packages/solid-hotkeys-devtools/README.md && cp README.md packages/vue-hotkeys/README.md && cp README.md packages/vue-hotkeys-devtools/README.md && cp README.md packages/lit-hotkeys/README.md && cp README.md packages/svelte-hotkeys/README.md && cp README.md packages/alpine-hotkeys/README.md && cp README.md packages/ember-hotkeys/README.md && cp README.md packages/octane-hotkeys/README.md && cp README.md packages/angular-hotkeys-devtools/README.md && cp README.md packages/svelte-hotkeys-devtools/README.md",
"dev": "pnpm run watch",
"format": "prettier --experimental-cli --ignore-unknown '**/*' --write",
"generate-docs": "node scripts/generate-docs.ts && pnpm run copy:readme",
"lint": "nx affected --target=lint --exclude=examples/**",
"lint:all": "pnpm run test:eslint && nx run-many --target=lint --projects=\"examples/**\"",
"lint:fix": "nx affected --target=lint:fix --exclude=examples/**",
"lint:fix:all": "nx run-many --targets=lint:fix",
"test": "pnpm run test:ci",
"test:ci": "pnpm run lint:all && nx run-many --targets=test:sherif,test:knip,test:docs,test:lib,test:types,test:build,build && size-limit",
"test:docs": "node scripts/verify-links.ts",
"test:e2e": "pnpm --filter @tanstack/hotkeys-e2e test:e2e",
"test:e2e:layouts": "pnpm --filter @tanstack/hotkeys-e2e test:e2e:layouts",
"test:e2e:layouts:docker": "pnpm --filter @tanstack/hotkeys-e2e test:e2e:layouts:docker",
"test:eslint": "nx affected --target=test:eslint --exclude=examples/**",
"test:knip": "knip",
"test:lib": "nx affected --targets=test:lib --exclude=examples/**",
"test:lib:dev": "pnpm test:lib && nx watch --all -- pnpm test:lib",
"test:pr": "pnpm run lint:all && nx affected --targets=test:sherif,test:knip,test:docs,test:lib,test:types,test:build,build",
"test:sherif": "sherif",
"test:skills": "intent maintainer check",
"test:types": "nx affected --targets=test:types --exclude=examples/**",
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
"test:build": "nx affected --target=test:build"
},
"size-limit": [
{
"name": "everything",
"path": "packages/hotkeys/dist/index.js",
"limit": "13.5 KB"
},
{
"name": "HotkeyManager",
"path": "packages/hotkeys/dist/index.js",
"import": "{ getHotkeyManager }",
"limit": "8.5 KB"
},
{
"name": "HotkeyRecorder",
"path": "packages/hotkeys/dist/index.js",
"import": "{ HotkeyRecorder }",
"limit": "7 KB"
},
{
"name": "KeyStateTracker",
"path": "packages/hotkeys/dist/index.js",
"import": "{ getKeyStateTracker }",
"limit": "3.5 KB"
},
{
"name": "formatForDisplay",
"path": "packages/hotkeys/dist/index.js",
"import": "{ formatForDisplay }",
"limit": "3 KB"
},
{
"name": "Provider without app hotkeys",
"path": "packages/hotkeys/dist/adapter.js",
"import": "{ createAppHotkeysStore }",
"limit": "0.5 KB"
},
{
"name": "React useHotkey",
"path": "packages/react-hotkeys/dist/index.js",
"import": "{ useHotkey }",
"ignore": [
"react",
"react-dom"
],
"limit": "11 KB"
},
{
"name": "React useHotkey + HotkeysProvider",
"path": "packages/react-hotkeys/dist/index.js",
"import": "{ useHotkey, HotkeysProvider }",
"ignore": [
"react",
"react-dom"
],
"limit": "12 KB"
}
],
"nx": {
"includedScripts": [
"test:docs",
"test:knip",
"test:sherif"
]
},
"devDependencies": {
"@changesets/changelog-github": "^1.0.1",
"@changesets/cli": "^3.0.3",
"@faker-js/faker": "^10.6.0",
"@size-limit/preset-small-lib": "^14.1.0",
"@tanstack/eslint-config": "0.4.0",
"@tanstack/intent": "0.5.5",
"@tanstack/typedoc-config": "0.3.4",
"@testing-library/jest-dom": "^7.0.1",
"@types/node": "^26.6.4",
"eslint": "^10.11.0",
"eslint-plugin-unused-imports": "^4.4.1",
"happy-dom": "^20.14.5",
"knip": "^6.39.0",
"markdown-link-extractor": "^4.0.4",
"nx": "^23.2.1",
"premove": "^4.0.0",
"prettier": "^3.9.9",
"prettier-plugin-svelte": "^4.1.1",
"publint": "^0.3.25",
"sherif": "^1.13.0",
"size-limit": "^14.1.0",
"tinyglobby": "^0.2.17",
"tsdown": "^0.23.0",
"typescript": "6.0.3",
"vitest": "^5.0.3"
},
"volta": {
"node": "24.15.0"
}
}