Open History to see the last commit
1{
2 "name": "root",
3 "private": true,
4 "repository": {
5 "type": "git",
6 "url": "git+https://github.com/TanStack/hotkeys.git"
7 },
8 "packageManager": "pnpm@12.8.1",
9 "engines": {
10 "pnpm": ">=12.6.0",
11 "node": "^22.22.3 || ^24.15.0 || >=26.0.0"
12 },
13 "type": "module",
14 "scripts": {
15 "build": "nx affected --skip-nx-cache --targets=build --exclude=examples/** && size-limit",
16 "build:all": "nx run-many --targets=build --exclude=examples/** && size-limit",
17 "build:core": "nx run-many --targets=build --projects=packages/hotkeys",
18 "changeset": "changeset",
19 "changeset:publish": "changeset publish",
20 "changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm format",
21 "clean": "find . -name 'dist' -type d -prune -exec rm -rf {} +",
22 "clean:node_modules": "find . -name 'node_modules' -type d -prune -exec rm -rf {} +",
23 "clean:all": "pnpm run clean && pnpm run clean:node_modules",
24 "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",
25 "dev": "pnpm run watch",
26 "format": "prettier --experimental-cli --ignore-unknown '**/*' --write",
27 "generate-docs": "node scripts/generate-docs.ts && pnpm run copy:readme",
28 "lint": "nx affected --target=lint --exclude=examples/**",
29 "lint:all": "pnpm run test:eslint && nx run-many --target=lint --projects=\"examples/**\"",
30 "lint:fix": "nx affected --target=lint:fix --exclude=examples/**",
31 "lint:fix:all": "nx run-many --targets=lint:fix",
32 "test": "pnpm run test:ci",
33 "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",
34 "test:docs": "node scripts/verify-links.ts",
35 "test:e2e": "pnpm --filter @tanstack/hotkeys-e2e test:e2e",
36 "test:e2e:layouts": "pnpm --filter @tanstack/hotkeys-e2e test:e2e:layouts",
37 "test:e2e:layouts:docker": "pnpm --filter @tanstack/hotkeys-e2e test:e2e:layouts:docker",
38 "test:e2e:ssr": "nx run-many --skip-nx-cache --targets=build --projects='@tanstack/hotkeys-example-*-format-for-display-*' && pnpm --filter @tanstack/hotkeys-e2e test:e2e:ssr",
39 "test:eslint": "nx affected --target=test:eslint --exclude=examples/**",
40 "test:knip": "knip",
41 "test:lib": "nx affected --targets=test:lib --exclude=examples/**",
42 "test:lib:dev": "pnpm test:lib && nx watch --all -- pnpm test:lib",
43 "test:pr": "pnpm run lint:all && nx affected --targets=test:sherif,test:knip,test:docs,test:lib,test:types,test:build,build",
44 "test:sherif": "sherif",
45 "test:skills": "intent maintainer check",
46 "test:types": "nx affected --targets=test:types --exclude=examples/**",
47 "watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
48 "test:build": "nx affected --target=test:build"
49 },
50 "size-limit": [
51 {
52 "name": "everything",
53 "path": "packages/hotkeys/dist/index.js",
54 "limit": "13.5 KB"
55 },
56 {
57 "name": "HotkeyManager",
58 "path": "packages/hotkeys/dist/index.js",
59 "import": "{ getHotkeyManager }",
60 "limit": "8.5 KB"
61 },
62 {
63 "name": "HotkeyRecorder",
64 "path": "packages/hotkeys/dist/index.js",
65 "import": "{ HotkeyRecorder }",
66 "limit": "7 KB"
67 },
68 {
69 "name": "KeyStateTracker",
70 "path": "packages/hotkeys/dist/index.js",
71 "import": "{ getKeyStateTracker }",
72 "limit": "3.5 KB"
73 },
74 {
75 "name": "formatForDisplay",
76 "path": "packages/hotkeys/dist/index.js",
77 "import": "{ formatForDisplay }",
78 "limit": "3 KB"
79 },
80 {
81 "name": "Provider without app hotkeys",
82 "path": "packages/hotkeys/dist/adapter.js",
83 "import": "{ createAppHotkeysStore }",
84 "limit": "0.5 KB"
85 },
86 {
87 "name": "React useHotkey",
88 "path": "packages/react-hotkeys/dist/index.js",
89 "import": "{ useHotkey }",
90 "ignore": [
91 "react",
92 "react-dom"
93 ],
94 "limit": "11 KB"
95 },
96 {
97 "name": "React useHotkey + HotkeysProvider",
98 "path": "packages/react-hotkeys/dist/index.js",
99 "import": "{ useHotkey, HotkeysProvider }",
100 "ignore": [
101 "react",
102 "react-dom"
103 ],
104 "limit": "12 KB"
105 }
106 ],
107 "nx": {
108 "includedScripts": [
109 "test:docs",
110 "test:knip",
111 "test:sherif"
112 ]
113 },
114 "devDependencies": {
115 "@changesets/changelog-github": "^1.0.1",
116 "@changesets/cli": "^3.0.3",
117 "@faker-js/faker": "^10.6.0",
118 "@size-limit/preset-small-lib": "^14.1.0",
119 "@tanstack/eslint-config": "0.4.0",
120 "@tanstack/intent": "0.5.5",
121 "@tanstack/typedoc-config": "0.3.4",
122 "@testing-library/jest-dom": "^7.0.1",
123 "@types/node": "^26.6.4",
124 "eslint": "^10.11.0",
125 "eslint-plugin-unused-imports": "^4.4.1",
126 "happy-dom": "^20.14.5",
127 "knip": "^6.39.0",
128 "markdown-link-extractor": "^4.0.4",
129 "nx": "^23.2.1",
130 "premove": "^4.0.0",
131 "prettier": "^3.9.9",
132 "prettier-plugin-svelte": "^4.1.1",
133 "publint": "^0.3.25",
134 "sherif": "^1.13.0",
135 "size-limit": "^14.1.0",
136 "tinyglobby": "^0.2.17",
137 "tsdown": "^0.23.0",
138 "typescript": "6.0.3",
139 "vitest": "^5.0.3"
140 },
141 "volta": {
142 "node": "24.15.0"
143 }
144}