test: narrow live Docker package script changes

This commit is contained in:
Peter Steinberger
2026-04-26 01:59:07 +01:00
parent 57f05128cb
commit 87142b5fb1
4 changed files with 257 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
import { performance } from "node:perf_hooks";
import {
classifyPackageJsonChangeFromGit,
detectChangedLanes,
listChangedPathsFromGit,
listStagedChangedPaths,
@@ -407,7 +408,14 @@ if (isDirectRun()) {
: args.staged
? listStagedChangedPaths()
: listChangedPathsFromGit({ base: args.base, head: args.head });
const result = detectChangedLanes(paths);
const packageJsonChangeKind = paths.includes("package.json")
? classifyPackageJsonChangeFromGit({
base: args.base,
head: args.head,
staged: args.staged,
})
: null;
const result = detectChangedLanes(paths, { packageJsonChangeKind });
process.exitCode = await runChangedCheck(result, {
...args,
explicitPaths: args.paths.length > 0,