From e9a2c3b24189c123082fbe2057e723322f342186 Mon Sep 17 00:00:00 2001 From: Noelle Wang <73260931+No767@users.noreply.github.com> Date: Tue, 10 Sep 2024 23:22:40 -0700 Subject: [PATCH] Automatically install Lefthook during setup (#532) --- README.md | 2 +- react/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c98b98..4a9fef1 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Make sure you have the following: - [Node.js 22](https://nodejs.org/en/download/) -Run `npm install && lefthook install`, then `npm run dev`. +Run `npm install`, then `npm run dev`. A more in-depth introduction (recommended to read) can be found [here](https://ucmacm-docs.netlify.app) diff --git a/react/package.json b/react/package.json index c496c8f..4438cee 100644 --- a/react/package.json +++ b/react/package.json @@ -7,7 +7,8 @@ "dev": "vite", "build": "tsc && vite build", "preview": "vite preview", - "check": "biome check --write src" + "check": "biome check --write src", + "prepare": "lefthook install" }, "dependencies": { "@icons-pack/react-simple-icons": ">=10.0 <11",