We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5544df5 commit 6c6c8b9Copy full SHA for 6c6c8b9
src/componentDetection.ts
@@ -13,7 +13,10 @@ import { StringDecoder } from 'node:string_decoder';
13
14
export default class ComponentDetection {
15
public static componentDetectionPath = process.platform === "win32" ? './component-detection.exe' : './component-detection';
16
- public static outputPath = path.join(tmpdir(), `component-detection-output-${Date.now()}.json`);
+ public static outputPath = (() => {
17
+ const tmpDir = fs.mkdtempSync(path.join(tmpdir(), 'component-detection-'));
18
+ return path.join(tmpDir, 'output.json');
19
+ })();
20
21
// This is the default entry point for this class.
22
// If executablePath is provided, use it directly and skip download.
0 commit comments