Skip to content

Commit 6c6c8b9

Browse files
aegilopsCopilot
andauthored
Update src/componentDetection.ts
Co-authored-by: Copilot <[email protected]>
1 parent 5544df5 commit 6c6c8b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/componentDetection.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ import { StringDecoder } from 'node:string_decoder';
1313

1414
export default class ComponentDetection {
1515
public static componentDetectionPath = process.platform === "win32" ? './component-detection.exe' : './component-detection';
16-
public static outputPath = path.join(tmpdir(), `component-detection-output-${Date.now()}.json`);
16+
public static outputPath = (() => {
17+
const tmpDir = fs.mkdtempSync(path.join(tmpdir(), 'component-detection-'));
18+
return path.join(tmpDir, 'output.json');
19+
})();
1720

1821
// This is the default entry point for this class.
1922
// If executablePath is provided, use it directly and skip download.

0 commit comments

Comments
 (0)