]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: use git default short commit-id (#7761)
authorJayFate <48240828+JayFate@users.noreply.github.com>
Fri, 20 Oct 2023 09:31:50 +0000 (17:31 +0800)
committerGitHub <noreply@github.com>
Fri, 20 Oct 2023 09:31:50 +0000 (17:31 +0800)
packages/sfc-playground/vite.config.ts
scripts/build.js

index df5441cb0f630226e39a09a49720be54023f7a07..0a5bfa6af0a1e8e36462d7d5d1db31ce82e5c8e4 100644 (file)
@@ -4,7 +4,7 @@ import { defineConfig, Plugin } from 'vite'
 import vue from '@vitejs/plugin-vue'
 import { execaSync } from 'execa'
 
-const commit = execaSync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7)
+const commit = execaSync('git', ['rev-parse', '--short=7', 'HEAD']).stdout
 
 export default defineConfig({
   plugins: [
index 77f711ce87fbddac8c875ae5a6c6f66a99dd9902..0cd011025ece6b6b1300ceaf6a6cf9cbf8c11f0f 100644 (file)
@@ -40,7 +40,7 @@ const sourceMap = args.sourcemap || args.s
 const isRelease = args.release
 const buildAllMatching = args.all || args.a
 const writeSize = args.size
-const commit = execaSync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7)
+const commit = execaSync('git', ['rev-parse', '--short=7', 'HEAD']).stdout
 
 const sizeDir = path.resolve('temp/size')