From 88866d57d6ac6d22514d4967fb24036c769a920f Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 22 Feb 2026 19:12:18 +0100 Subject: [PATCH] chore: add husky; add post-commit auto mirror to gh & sh --- .husky/post-commit | 3 +++ package.json | 18 ++++++++++++++++++ pnpm-lock.yaml | 24 ++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 .husky/post-commit create mode 100644 package.json create mode 100644 pnpm-lock.yaml diff --git a/.husky/post-commit b/.husky/post-commit new file mode 100644 index 0000000..013cec7 --- /dev/null +++ b/.husky/post-commit @@ -0,0 +1,3 @@ +echo "post-commit..." +git push gh --mirror +git push sh --mirror diff --git a/package.json b/package.json new file mode 100644 index 0000000..735ace9 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "threads", + "private": "true", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "prepare": "husky" + }, + "keywords": [], + "author": "", + "license": "ISC", + "packageManager": "pnpm@10.15.0", + "devDependencies": { + "husky": "^9.1.7" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..a177305 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,24 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + husky: + specifier: ^9.1.7 + version: 9.1.7 + +packages: + + husky@9.1.7: + resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==} + engines: {node: '>=18'} + hasBin: true + +snapshots: + + husky@9.1.7: {}