mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-31 17:51:49 +00:00
16 lines
399 B
TypeScript
16 lines
399 B
TypeScript
import { exec } from './utils/exec.ts';
|
|
import { getChangedFiles } from './utils/git.ts';
|
|
import { block } from './utils/output.ts';
|
|
|
|
const changedFiles = await getChangedFiles();
|
|
|
|
if (changedFiles.length > 0) {
|
|
try {
|
|
await exec('pnpm', ['check', '--all', ...changedFiles]);
|
|
} catch {
|
|
block(
|
|
'pnpm check --all failed — the issues must be resolved before finishing',
|
|
);
|
|
}
|
|
}
|