From 54f63aa229bb56d72276d44277dea3229e412e46 Mon Sep 17 00:00:00 2001 From: Bobby Galli Date: Mon, 15 Apr 2024 19:55:41 -0400 Subject: [PATCH] fix: sym file lookup --- bin/index.ts | 11 +++++++++-- src/sym.ts | 14 +++++++++----- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/bin/index.ts b/bin/index.ts index f0e5ce6..ea0631c 100644 --- a/bin/index.ts +++ b/bin/index.ts @@ -113,8 +113,7 @@ import { CommandLineDefinition, argDefinitions, usageDefinitions } from './comma const nodeDumpSyms = (await import('node-dump-syms')).dumpSyms; symbolFilePaths = symbolFilePaths.map(file => { console.log(`Dumping syms for ${file}...`); - const fileNoExt = file.split('.')[0]; // Handle macos .app.dSYM etc. - const symFile = join(tmpDir, `${basename(fileNoExt)}.sym`); + const symFile = join(tmpDir, `${getSymFileBaseName(file)}.sym`); nodeDumpSyms(file, symFile); return symFile; }); @@ -179,6 +178,14 @@ async function getCommandLineOptions(argDefinitions: Array moduleName.endsWith(ext))) { + if (ignoredExtensions.some((regex) => regex.test(moduleName))) { return moduleName; } - + return moduleName.split('.')[0]; } \ No newline at end of file