fix(artifacts): classify selected package names

This commit is contained in:
morluto committed 2026-10-27 06:28:15 +08:00
1 parent 3515b26221
commit c27560e434
11 files changed
+285 -36

No files matched your search

@@ -1,3 +1,4 @@
import { artifactNameForClassification } from "../../domain/artifactNameSelection.js";
import type { AnalysisSettingValues } from "../../domain/analysisSettings.js";
import { absoluteCallerPath } from "../../filesystem/callerPath.js";
import {
@@ -500,8 +501,9 @@ const resolveFormat = (
const observed = metadata.isDirectory()
? "directory"
: metadata.isFile() &&
(selectedPath.toLowerCase().endsWith(".asar") ||
path.toLowerCase().endsWith(".asar"))
artifactNameForClassification(selectedPath, path)
.toLowerCase()
.endsWith(".asar")
? "asar"
: undefined;
if (observed === undefined)