Skip to content
Source
Sign inSign up
TanStack/hotkeys
Open History to see the last commit

package.json

92 lines4.1 KB

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@10.31.0",
9 "type": "module",
10 "scripts": {
11 "build": "nx affected --skip-nx-cache --targets=build --exclude=examples/** && size-limit",
12 "build:all": "nx run-many --targets=build --exclude=examples/**",
13 "build:core": "nx run-many --targets=build --projects=packages/hotkeys",
14 "changeset": "changeset",
15 "changeset:publish": "changeset publish",
16 "changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm format",
17 "clean": "find . -name 'dist' -type d -prune -exec rm -rf {} +",
18 "clean:node_modules": "find . -name 'node_modules' -type d -prune -exec rm -rf {} +",
19 "clean:all": "pnpm run clean && pnpm run clean:node_modules",
20 "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/svelte-hotkeys/README.md",
21 "dev": "pnpm run watch",
22 "format": "prettier --experimental-cli --ignore-unknown '**/*' --write",
23 "generate-docs": "node scripts/generate-docs.ts && pnpm run copy:readme",
24 "lint": "nx affected --target=lint --exclude=examples/**",
25 "lint:fix": "nx affected --target=lint:fix --exclude=examples/**",
26 "lint:fix:all": "nx run-many --targets=lint:fix",
27 "test": "pnpm run test:ci",
28 "test:ci": "nx run-many --targets=test:eslint,test:sherif,test:knip,test:docs,test:lib,test:types,build",
29 "test:docs": "node scripts/verify-links.ts",
30 "test:eslint": "nx affected --target=test:eslint --exclude=examples/**",
31 "test:knip": "knip",
32 "test:lib": "nx affected --targets=test:lib --exclude=examples/**",
33 "test:lib:dev": "pnpm test:lib && nx watch --all -- pnpm test:lib",
34 "test:pr": "nx affected --targets=test:eslint,test:sherif,test:knip,test:docs,test:lib,test:types,build",
35 "test:sherif": "sherif",
36 "test:types": "nx affected --targets=test:types --exclude=examples/**",
37 "watch": "pnpm run build:all && nx watch --all -- pnpm run build:all"
38 },
39 "size-limit": [
40 {
41 "path": "packages/hotkeys/dist/index.js",
42 "limit": "8 KB"
43 }
44 ],
45 "nx": {
46 "includedScripts": [
47 "test:docs",
48 "test:knip",
49 "test:sherif"
50 ]
51 },
52 "devDependencies": {
53 "@changesets/cli": "^2.30.0",
54 "@faker-js/faker": "^10.3.0",
55 "@size-limit/preset-small-lib": "^12.0.1",
56 "@svitejs/changesets-changelog-github-compact": "^1.2.0",
57 "@tanstack/eslint-config": "0.4.0",
58 "@tanstack/typedoc-config": "0.3.3",
59 "@testing-library/jest-dom": "^6.9.1",
60 "@types/node": "^25.3.5",
61 "eslint": "^9.32.2",
62 "eslint-plugin-unused-imports": "^4.4.1",
63 "happy-dom": "^20.8.3",
64 "knip": "^5.86.0",
65 "markdown-link-extractor": "^4.0.3",
66 "nx": "^22.5.4",
67 "premove": "^4.0.0",
68 "prettier": "^3.8.1",
69 "prettier-plugin-svelte": "^3.5.1",
70 "publint": "^0.3.18",
71 "sherif": "^1.10.0",
72 "size-limit": "^12.0.1",
73 "tinyglobby": "^0.2.15",
74 "tsdown": "^0.21.0",
75 "typescript": "5.9.3",
76 "vitest": "^4.0.18"
77 },
78 "overrides": {
79 "@tanstack/angular-hotkeys": "workspace:*",
80 "@tanstack/hotkeys": "workspace:*",
81 "@tanstack/hotkeys-devtools": "workspace:*",
82 "@tanstack/preact-hotkeys": "workspace:*",
83 "@tanstack/preact-hotkeys-devtools": "workspace:*",
84 "@tanstack/react-hotkeys": "workspace:*",
85 "@tanstack/react-hotkeys-devtools": "workspace:*",
86 "@tanstack/solid-hotkeys": "workspace:*",
87 "@tanstack/solid-hotkeys-devtools": "workspace:*",
88 "@tanstack/svelte-hotkeys": "workspace:*",
89 "@tanstack/vue-hotkeys": "workspace:*",
90 "@tanstack/vue-hotkeys-devtools": "workspace:*"
91 }