From 54f466b57e37cfc74898ba603bbe4dc4c10dfc66 Mon Sep 17 00:00:00 2001 From: Harald Nordgren Date: Sun, 4 May 2025 19:31:56 +0200 Subject: [PATCH] fix: set 'path-mode=abs' by default when 'working-directory' is used --- dist/post_run/index.js | 3 +++ dist/run/index.js | 3 +++ src/run.ts | 3 +++ 3 files changed, 9 insertions(+) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 315c400..c14269d 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -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); diff --git a/dist/run/index.js b/dist/run/index.js index 3547855..7b6da96 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -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); diff --git a/src/run.ts b/src/run.ts index db02b3f..657cb87 100644 --- a/src/run.ts +++ b/src/run.ts @@ -126,6 +126,9 @@ async function runLint(binPath: string, patchPath: string): Promise { 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) }