Skip to content

Commit

Permalink
fix(tar): hide the tar-stream types from endusers (#251)
Browse files Browse the repository at this point in the history
This prevents other typescript users needing to install @types/tar-stream
  • Loading branch information
blacha authored Jul 7, 2022
1 parent 3b4e2e1 commit ad38a18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tar/src/tar.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { createHash } from 'crypto';
import { createWriteStream } from 'fs';
import tar from 'tar-stream';
import * as tar from 'tar-stream';

// Default modified time to 0, to make the builds reproducable
const mtime = new Date(0);

export class TarBuilder {
tarPath: string;
packer: tar.Pack;
private packer: tar.Pack;
// Maps run into issues after 120M files, use a collection of maps to allow for huggee files
fileHashes: Map<string, string>[] = [];
stats: { total: number; duplicate: number } = { total: 0, duplicate: 0 };
Expand Down

0 comments on commit ad38a18

Please sign in to comment.