From 5976d054a157e6a36cc255796b6e6b6c9a3ed521 Mon Sep 17 00:00:00 2001 From: Kyle Wong <62775956+y3owk1n@users.noreply.github.com> Date: Sun, 7 Apr 2024 15:28:50 +0800 Subject: [PATCH] build: Add scripts to clean lock file and resync dependencies after cleaning (#79) Add "clean:lock" script to remove pnpm-lock.yaml file and "clean:resync" script to run "clean:lock" then reinstall dependencies using pnpm. --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a708693..f20cfa2 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "lint": "next lint", "start": "next start", "find-deadcode": "ts-prune | (! grep -v 'used in module')", - "build": "next build && next-sitemap" + "build": "next build && next-sitemap", + "clean:lock": "rm -f pnpm-lock.yaml", + "clean:resync": "pnpm clean:lock && pnpm install" }, "dependencies": { "@heroicons/react": "^2.1.3",