Skip to content

Commit

Permalink
Fix the HRX-splitting logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Mar 20, 2024
1 parent 5b2369b commit cc41b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lint-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async function lintHrxSize(
await hrxToRealFiles(archive);
// Fixes files recursively.
await lintHrxSize(
(await dir.atPath(archive.relPath())) as RealDirectory,
(await dir.atPath(p.relative(dir.path, archive.path))) as RealDirectory,
reporter,
{fix}
);
Expand Down Expand Up @@ -239,7 +239,7 @@ async function hrxToRealFiles(archive: VirtualDirectory) {
const subArchivePath = `${subdir.path}.hrx`;
fs.writeFileSync(subArchivePath, await subdir.asArchive());
}
fs.unlinkSync(archive.path);
fs.unlinkSync(`${archive.path}.hrx`);
}

/**
Expand Down

0 comments on commit cc41b39

Please sign in to comment.