From: Haoqun Jiang Date: Wed, 2 Apr 2025 18:11:53 +0000 (+0800) Subject: chore: ensure the local branch is up to date before versioning [skip ci] X-Git-Tag: v3.16.4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fece57964f12d9e8220d7befa8bb1d942900e8d;p=thirdparty%2Fvuejs%2Fcreate-vue.git chore: ensure the local branch is up to date before versioning [skip ci] --- diff --git a/package.json b/package.json index e4982ba4..cce19e12 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "pretest": "pnpm run build && pnpm run snapshot", "test": "zx ./scripts/test.mjs", "test:unit": "vitest", + "preversion": "git fetch && git status -uno | grep -q 'Your branch is up to date'", "postversion": "zx ./scripts/postversion.mjs", "prepublishOnly": "pnpm run build" },