diff --git a/ts/export/packer/packer.ts b/ts/export/packer/packer.ts index 852059440f..c5229af86e 100644 --- a/ts/export/packer/packer.ts +++ b/ts/export/packer/packer.ts @@ -1,11 +1,11 @@ -import {archiver, Zip} from "archiver"; +import * as archiver from "archiver"; import * as fs from 'fs'; export class Packer { - protected archive: Zip; + protected archive: any; constructor() { - this.archive = archiver.create("fgf", {}); + this.archive = archiver.create("zip", {}); } pack(output: fs.WriteStream): void { diff --git a/ts/tests/localPackerTest.ts b/ts/tests/localPackerTest.ts index 5b95064ac8..6de495b08b 100644 --- a/ts/tests/localPackerTest.ts +++ b/ts/tests/localPackerTest.ts @@ -1,5 +1,7 @@ /// /// +/// + import {LocalPacker} from "../export/packer/local"; import {assert} from "chai"; diff --git a/ts/typings/archiver/archiver.d.ts b/ts/typings/archiver/archiver.d.ts index b97c0fc0e5..d5133555a4 100644 --- a/ts/typings/archiver/archiver.d.ts +++ b/ts/typings/archiver/archiver.d.ts @@ -22,20 +22,21 @@ declare module "archiver" { name?: string; } - export interface Zip extends STREAM.Transform { + interface Archiver extends STREAM.Transform { pipe(writeStream: FS.WriteStream): void; append(readStream: FS.ReadStream, name: nameInterface): void; finalize(): void; - bulk(mappings: any): void; } interface Options { } - function archiver(format: string, options?: Options): Zip; + function archiver(format: string, options?: Options): Archiver; - export namespace archiver { - function create(format: string, options?: Options): Zip; + namespace archiver { + function create(format: string, options?: Options): Archiver; } + + export = archiver; }