mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-02 21:03:34 +03:00
Resolve task through PATHEXT in the comment-lint hook
This commit is contained in:
@@ -92,7 +92,9 @@ function taskCommand() {
|
||||
for (const candidate of candidates) {
|
||||
if (existsSync(candidate)) return { command: candidate, shell: false };
|
||||
}
|
||||
return { command: process.platform === "win32" ? "task.cmd" : "task", shell: process.platform === "win32" };
|
||||
// "task" rather than "task.cmd": only an npm install ships a .cmd, and scoop or
|
||||
// winget put task.exe on PATH, which the shell resolves through PATHEXT anyway.
|
||||
return { command: "task", shell: process.platform === "win32" };
|
||||
}
|
||||
|
||||
function run() {
|
||||
|
||||
Reference in New Issue
Block a user