/
githubmirror
/
lerna
Обзор
Документация
Войти
/
githubmirror
/
lerna
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
libs/core/src/lib/git-checkout.ts
23 строки
559 B
James Henry
chore(repo): migrate from jest to vitest (#4389)
13 июл 2026, 20:06
Не верифицирован
13 июл 2026, 20:06
1f7e109
Код
Авторство
О чём код?
import { ExecOptions } from "child_process"; import log from "./npmlog"; import * as childProcess from "@lerna/child-process"; /** * Reset files modified by publish steps. */ export function gitCheckout( stagedFiles: string[], gitOpts: { granularPathspec: boolean }, execOpts: ExecOptions ): Promise<void> { const files = gitOpts.granularPathspec ? stagedFiles : "."; log.silly("gitCheckout", files as string); return childProcess.exec( "git", ["checkout", "--"].concat(files), execOpts as any ) as unknown as Promise<void>; }