From 288eddb7fdefba5def3bb51dfc9a7369c08864d3 Mon Sep 17 00:00:00 2001 From: Stephan Meijer Date: Tue, 20 Feb 2024 22:00:50 +0100 Subject: [PATCH] chore: update docs deploy script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c0e473446..93a4cc31f 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "docz:dev": "docz dev", "docz:build": "docz build --base /leaflet-geosearch/", "docz:serve": "docz build && docz serve", - "docs:update": "run-s clean build docz:build && git checkout gh-pages && find . -maxdepth 1 -type f -not -path '*/\\.*' -delete && cp -r .docz/dist/* . && git add . && (git diff --exit-code || git commit -m \"update docs\") && git checkout - && git push origin gh-pages", + "docs:update": "run-s clean build docz:build && git checkout gh-pages && find . -maxdepth 1 -type f -not -path '*/\\.*' -delete && cp -r .docz/dist/* . && git add . && (git diff --staged --exit-code || git commit -m \"update docs\") && git checkout - && git push origin gh-pages", "prepublish": "run-s test clean build", "ci:lint": "eslint '{docs,src,test}/**/*.{js,ts,tsx}' -c ./.eslintrc.js", "ci:tsc": "tsc --noEmit --project ./tsconfig.json",