Skip to content

Commit

Permalink
fix(cli): make tile paths relative not absolute (#2595)
Browse files Browse the repository at this point in the history
* fix(cli): make tile paths relative not absolute

* refactor: track tar creation stats
  • Loading branch information
blacha committed Nov 16, 2022
1 parent 754e76a commit dae0e9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/cli/overview/action.create.overview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,10 @@ export class CommandCreateOverview extends CommandLineAction {

const tarBuilder = new TarBuilder(tarFilePath);
tiles.sort((a, b) => a.localeCompare(b));
for (const file of tiles) await tarBuilder.write(file.slice(targetPath.length), await fsa.read(file));
for (const file of tiles) await tarBuilder.write(file.slice(targetPath.length + 1), await fsa.read(file));

await tarBuilder.close();
logger.info(tarBuilder.stats, 'CreateOver:TarCreated');

// Creating tar index
const fd = await fs.open(tarFilePath, 'r');
Expand Down

0 comments on commit dae0e9b

Please sign in to comment.