chore: restrict commit hash strings to 8 chars

resolves #19488
This commit is contained in:
Daniel Roe 2023-03-06 22:20:07 +00:00
parent 4f61e36c6f
commit abcd27ae03

View File

@ -8,7 +8,7 @@ import { loadWorkspace } from './_utils'
async function main () { async function main () {
const workspace = await loadWorkspace(process.cwd()) const workspace = await loadWorkspace(process.cwd())
const commit = execSync('git rev-parse --short HEAD').toString('utf-8').trim() const commit = execSync('git rev-parse --short HEAD').toString('utf-8').trim().slice(0, 8)
const date = Math.round(Date.now() / (1000 * 60)) const date = Math.round(Date.now() / (1000 * 60))
const nuxtPkg = workspace.find('nuxt') const nuxtPkg = workspace.find('nuxt')