UNPKG

just-hotkeys

Version:

A declarative keyboard shortcut manager for JavaScript and TypeScript - framework agnostic with React support

98 lines (97 loc) 2.59 kB
{ "name": "just-hotkeys", "version": "0.1.0", "description": "A declarative keyboard shortcut manager for JavaScript and TypeScript - framework agnostic with React support", "type": "module", "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./react": { "types": "./dist/react.d.ts", "import": "./dist/react.js", "require": "./dist/react.cjs" } }, "files": [ "dist" ], "homepage": "https://shubhdeep12.github.io/just-hotkeys", "scripts": { "dev": "vite", "build": "tsc && vite build", "preview": "vite preview", "demo": "npx serve docs -p 8000", "demo:open": "open http://localhost:8000", "test": "vitest", "test:ui": "vitest --ui", "test:run": "vitest run", "test:coverage": "vitest run --coverage", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 3", "lint:fix": "eslint . --ext ts,tsx --fix", "format": "prettier --write .", "format:check": "prettier --check .", "type-check": "tsc --noEmit", "clean": "rm -rf dist", "prepublishOnly": "pnpm run clean && pnpm run build", "changeset": "changeset", "version": "changeset version", "release": "pnpm run build && changeset publish" }, "keywords": [ "keyboard", "shortcuts", "hotkeys", "declarative", "typescript", "react", "hooks", "key-bindings", "accessibility" ], "author": { "name": "shubhdeep12", "email": "chhabrashubhdeep@gmail.com" }, "license": "MIT", "repository": { "type": "git", "url": "https://github.com/shubhdeep12/just-hotkeys.git" }, "bugs": { "url": "https://github.com/shubhdeep12/just-hotkeys/issues" }, "devDependencies": { "@changesets/cli": "^2.29.6", "@eslint/js": "^9.33.0", "@testing-library/react": "^14.2.1", "@types/react": "^18.3.23", "@typescript-eslint/eslint-plugin": "^8.39.1", "@typescript-eslint/parser": "^8.39.1", "eslint": "^9.33.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-prettier": "^5.5.4", "jsdom": "^24.0.0", "prettier": "^3.6.2", "typescript": "^5.2.2", "vite": "^5.2.0", "vite-plugin-dts": "^3.8.3", "vitest": "^1.4.0" }, "peerDependencies": { "react": ">=16.8.0" }, "peerDependenciesMeta": { "react": { "optional": true } }, "dependencies": { "react-dom": "^18.3.1" } }