| 1 |
{ |
| 2 |
"name": "tinykeys", |
| 3 |
"version": "4.0.0", |
| 4 |
"description": "A tiny (~1KB) & modern library for keybindings.", |
| 5 |
"author": "Jamie Kyle <[email protected]>", |
| 6 |
"license": "MIT", |
| 7 |
"repository": "jamiebuilds/tinykeys", |
| 8 |
"type": "module", |
| 9 |
"sideEffects": false, |
| 10 |
"source": "src/tinykeys.ts", |
| 11 |
"main": "dist/tinykeys.cjs", |
| 12 |
"module": "dist/tinykeys.mjs", |
| 13 |
"unpkg": "dist/tinykeys.umd.js", |
| 14 |
"types": "dist/tinykeys.d.mts", |
| 15 |
"files": [ |
| 16 |
"dist" |
| 17 |
], |
| 18 |
"exports": { |
| 19 |
".": { |
| 20 |
"import": { |
| 21 |
"types": "./dist/tinykeys.d.mts", |
| 22 |
"default": "./dist/tinykeys.mjs" |
| 23 |
}, |
| 24 |
"require": { |
| 25 |
"types": "./dist/tinykeys.d.cts", |
| 26 |
"default": "./dist/tinykeys.cjs" |
| 27 |
} |
| 28 |
} |
| 29 |
}, |
| 30 |
"engines": { |
| 31 |
"node": ">=22" |
| 32 |
}, |
| 33 |
"keywords": [ |
| 34 |
"key", |
| 35 |
"keys", |
| 36 |
"bindings", |
| 37 |
"hot", |
| 38 |
"hotkeys", |
| 39 |
"a11y", |
| 40 |
"accessibility", |
| 41 |
"keyboard", |
| 42 |
"navigation", |
| 43 |
"event", |
| 44 |
"handler", |
| 45 |
"react", |
| 46 |
"vue", |
| 47 |
"angular", |
| 48 |
"ember", |
| 49 |
"mousetrap", |
| 50 |
"shortcuts" |
| 51 |
], |
| 52 |
"scripts": { |
| 53 |
"format": "prettier --write .", |
| 54 |
"check": "npm run -s check:types && npm run -s lint && npm run -s check:format", |
| 55 |
"check:types": "tsc --noEmit", |
| 56 |
"check:lint": "eslint .", |
| 57 |
"check:format": "prettier --check .", |
| 58 |
"build": "tsdown", |
| 59 |
"build:example": "vite build ./example --base ./", |
| 60 |
"test": "vitest", |
| 61 |
"start": "vite example --base ./", |
| 62 |
"precommit": "lint-staged", |
| 63 |
"prepublishOnly": "npm run -s build" |
| 64 |
}, |
| 65 |
"devDependencies": { |
| 66 |
"@arethetypeswrong/core": "^0.18.2", |
| 67 |
"@eslint/js": "^10.0.1", |
| 68 |
"@types/canvas-confetti": "^1.9.0", |
| 69 |
"@vitest/browser-playwright": "^4.1.6", |
| 70 |
"canvas-confetti": "^1.9.4", |
| 71 |
"eslint": "^10.4.0", |
| 72 |
"husky": "^9.1.7", |
| 73 |
"lint-staged": "^17.0.5", |
| 74 |
"prettier": "^3.8.3", |
| 75 |
"prettier-plugin-tailwindcss": "^0.8.0", |
| 76 |
"publint": "^0.3.21", |
| 77 |
"tsdown": "^0.22.0", |
| 78 |
"typescript": "^6.0.3", |
| 79 |
"typescript-eslint": "^8.59.4", |
| 80 |
"vite": "^8.0.13", |
| 81 |
"vitest": "^4.1.6" |
| 82 |
}, |
| 83 |
"overrides": { |
| 84 |
"@arethetypeswrong/core": { |
| 85 |
"fflate": "0.8.2" |
| 86 |
} |
| 87 |
}, |
| 88 |
"lint-staged": { |
| 89 |
"*": [ |
| 90 |
"prettier --write", |
| 91 |
"git add" |
| 92 |
] |
| 93 |
} |
| 94 |
} |