diff --git a/patches/tinykeys.patch b/patches/tinykeys.patch new file mode 100644 index 0000000..38e789e --- /dev/null +++ b/patches/tinykeys.patch @@ -0,0 +1,166 @@ +diff --git a/package.json b/package.json +index bbda4b2375dbc97a0757df776d5cbf8fbd071fd0..1dfb4b07ae55fba6d2c6c0e6658096613fa2dd99 100644 +--- a/package.json ++++ b/package.json +@@ -1,86 +1,77 @@ + { +- "name": "tinykeys", +- "version": "3.0.0", +- "description": "A tiny (~650 B) & modern library for keybindings.", +- "author": "Jamie Kyle ", +- "license": "MIT", +- "repository": "jamiebuilds/tinykeys", +- "source": "src/tinykeys.ts", +- "main": "dist/tinykeys.js", +- "module": "dist/tinykeys.module.js", +- "unpkg": "dist/tinykeys.umd.js", +- "types": "dist/tinykeys.d.ts", +- "files": [ +- "dist" +- ], +- "exports": { +- ".": { +- "import": "./dist/tinykeys.module.js", +- "require": "./dist/tinykeys.js" +- } +- }, +- "keywords": [ +- "key", +- "keys", +- "bindings", +- "hot", +- "hotkeys", +- "a11y", +- "accessibility", +- "keyboard", +- "navigation", +- "event", +- "handler", +- "react", +- "vue", +- "angular", +- "ember", +- "mousetrap", +- "shortcuts" +- ], +- "scripts": { +- "check": "npm run -s typecheck && npm run -s lint && npm run -s check:format", +- "typecheck": "tsc --noEmit", +- "test": "TS_NODE_PROJECT=./tsconfig.test.json nyc --reporter=lcov --reporter=text-summary ava", +- "lint": "eslint '**'", +- "format": "prettier --write '**'", +- "check:format": "prettier --check '**'", +- "build": "rm -rf dist && microbundle --inline none", +- "build:example": "rm -rf example-dist && parcel build example/index.html -d example-dist --public-url ./", +- "start": "rm -rf example-dist && parcel example/index.html -d example-dist", +- "precommit": "lint-staged", +- "prepublishOnly": "npm run -s build" +- }, +- "devDependencies": { +- "@types/canvas-confetti": "^1.6.4", +- "@typescript-eslint/eslint-plugin": "^4.0.0", +- "@typescript-eslint/parser": "^3.7.1", +- "ava": "^3.11.0", +- "canvas-confetti": "^1.9.3", +- "eslint": "^7.5.0", +- "eslint-plugin-ava": "^12.0.0", +- "husky": "^6.0.0", +- "lint-staged": "^11.0.0", +- "microbundle": "^0.13.0", +- "nyc": "^15.1.0", +- "parcel": "^1.12.4", +- "prettier": "^2.0.5", +- "ts-node": "^9.0.0", +- "typescript": "^4.0.2" +- }, +- "lint-staged": { +- "*": [ +- "prettier --write", +- "git add" +- ] +- }, +- "ava": { +- "extensions": [ +- "ts", +- "tsx" +- ], +- "require": [ +- "ts-node/register" +- ] +- } ++ "name": "tinykeys", ++ "version": "3.0.0", ++ "description": "A tiny (~650 B) & modern library for keybindings.", ++ "author": "Jamie Kyle ", ++ "license": "MIT", ++ "repository": "jamiebuilds/tinykeys", ++ "source": "src/tinykeys.ts", ++ "main": "dist/tinykeys.js", ++ "module": "dist/tinykeys.module.js", ++ "unpkg": "dist/tinykeys.umd.js", ++ "types": "dist/tinykeys.d.ts", ++ "files": ["dist"], ++ "exports": { ++ ".": { ++ "import": "./dist/tinykeys.module.js", ++ "types": "./dist/tinykeys.d.ts", ++ "require": "./dist/tinykeys.js" ++ } ++ }, ++ "keywords": [ ++ "key", ++ "keys", ++ "bindings", ++ "hot", ++ "hotkeys", ++ "a11y", ++ "accessibility", ++ "keyboard", ++ "navigation", ++ "event", ++ "handler", ++ "react", ++ "vue", ++ "angular", ++ "ember", ++ "mousetrap", ++ "shortcuts" ++ ], ++ "scripts": { ++ "check": "npm run -s typecheck && npm run -s lint && npm run -s check:format", ++ "typecheck": "tsc --noEmit", ++ "test": "TS_NODE_PROJECT=./tsconfig.test.json nyc --reporter=lcov --reporter=text-summary ava", ++ "lint": "eslint '**'", ++ "format": "prettier --write '**'", ++ "check:format": "prettier --check '**'", ++ "build": "rm -rf dist && microbundle --inline none", ++ "build:example": "rm -rf example-dist && parcel build example/index.html -d example-dist --public-url ./", ++ "start": "rm -rf example-dist && parcel example/index.html -d example-dist", ++ "precommit": "lint-staged", ++ "prepublishOnly": "npm run -s build" ++ }, ++ "devDependencies": { ++ "@types/canvas-confetti": "^1.6.4", ++ "@typescript-eslint/eslint-plugin": "^4.0.0", ++ "@typescript-eslint/parser": "^3.7.1", ++ "ava": "^3.11.0", ++ "canvas-confetti": "^1.9.3", ++ "eslint": "^7.5.0", ++ "eslint-plugin-ava": "^12.0.0", ++ "husky": "^6.0.0", ++ "lint-staged": "^11.0.0", ++ "microbundle": "^0.13.0", ++ "nyc": "^15.1.0", ++ "parcel": "^1.12.4", ++ "prettier": "^2.0.5", ++ "ts-node": "^9.0.0", ++ "typescript": "^4.0.2" ++ }, ++ "lint-staged": { ++ "*": ["prettier --write", "git add"] ++ }, ++ "ava": { ++ "extensions": ["ts", "tsx"], ++ "require": ["ts-node/register"] ++ } + }