From 968a098a96c453a7c2255d6c43d0048af265d2bd Mon Sep 17 00:00:00 2001 From: lingbopro Date: Sun, 19 Jan 2025 21:55:31 +0800 Subject: [PATCH] chore: add git config in prepare script to keep EOL lf --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8cd444f..c80be31 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "scripts": { "build": "node dev/scripts/script.mjs build", "dev": "node dev/scripts/script.mjs server --no-min-bundle", - "prepare": "husky", + "prepare": "git config set core.autocrlf false && git config set core.eol lf && husky", "script": "node dev/scripts/script.mjs", "serve": "node dev/scripts/script.mjs server", "test": "web-test-runner",