fix: set 'path-mode=abs' by default when 'working-directory' is used

This commit is contained in:
Harald Nordgren 2025-05-04 19:31:56 +02:00
parent a3942e2497
commit 54f466b57e
3 changed files with 9 additions and 0 deletions

3
dist/post_run/index.js generated vendored
View file

@ -93015,6 +93015,9 @@ async function runLint(binPath, patchPath) {
if (!userArgNames.has(`path-prefix`)) {
addedArgs.push(`--path-prefix=${workingDirectory}`);
}
if (!userArgNames.has(`path-mode`)) {
addedArgs.push(`--path-mode=abs`);
}
cmdArgs.cwd = path.resolve(workingDirectory);
}
await runVerify(binPath, userArgsMap, cmdArgs);

3
dist/run/index.js generated vendored
View file

@ -93015,6 +93015,9 @@ async function runLint(binPath, patchPath) {
if (!userArgNames.has(`path-prefix`)) {
addedArgs.push(`--path-prefix=${workingDirectory}`);
}
if (!userArgNames.has(`path-mode`)) {
addedArgs.push(`--path-mode=abs`);
}
cmdArgs.cwd = path.resolve(workingDirectory);
}
await runVerify(binPath, userArgsMap, cmdArgs);

View file

@ -126,6 +126,9 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
if (!userArgNames.has(`path-prefix`)) {
addedArgs.push(`--path-prefix=${workingDirectory}`)
}
if (!userArgNames.has(`path-mode`)) {
addedArgs.push(`--path-mode=abs`)
}
cmdArgs.cwd = path.resolve(workingDirectory)
}