fix(build): output task name repeat (#6363)

This commit is contained in:
Thezero 2022-03-05 20:35:53 +08:00 committed by GitHub
parent f3b4e54c0c
commit 6a7f1004cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,4 +5,4 @@ export const withTaskName = <T extends TaskFunction>(name: string, fn: T) =>
Object.assign(fn, { displayName: name })
export const runTask = (name: string) =>
withTaskName(name, () => run(`pnpm run build ${name}`))
withTaskName(`shellTask:${name}`, () => run(`pnpm run build ${name}`))