From 5151f79dc1daff76628efd9c951c7ec186683996 Mon Sep 17 00:00:00 2001 From: Ayo Date: Tue, 24 Feb 2026 08:13:27 +0100 Subject: [PATCH] chore: add pre-commit test & lint --- .husky/pre-commit | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..52abe4b --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,3 @@ +echo "pre-commit..." +pnpm run lint +pnpm run test diff --git a/package.json b/package.json index 4004e4b..b410983 100644 --- a/package.json +++ b/package.json @@ -11,11 +11,12 @@ "test": "pnpm -F @ayco/astro-sw test", "build": "pnpm -F @ayco/astro-sw build", "demo": "pnpm run build && pnpm -F demo build:preview", + "dev": "pnpm run demo", "postinstall": "pnpm run build" }, "repository": { "type": "git", - "url": "git+ssh://git@git.sr.ht/~ayoayco/astro-sw.git" + "url": "https://git.ayo.run/ayo/astro-sw" }, "author": "Ayo Ayco", "license": "MIT",