diff --git a/package.json b/package.json index 77d225d08c..c623ceac56 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "clippy" ], "dependencies": { + "@types/app-root-path": "^1.2.4", "@types/archiver": "^0.15.37", "@types/express": "^4.0.35", "@types/lodash": "^4.14.54", diff --git a/ts/export/packer/packer.ts b/ts/export/packer/packer.ts index 90d32584ca..e8f0f96a63 100644 --- a/ts/export/packer/packer.ts +++ b/ts/export/packer/packer.ts @@ -1,3 +1,4 @@ +import * as appRoot from "app-root-path"; import * as archiver from "archiver"; import * as fs from "fs"; import * as xml from "xml"; @@ -8,8 +9,6 @@ import { Styles } from "../../styles"; import { DefaultStylesFactory } from "../../styles/factory"; import { Formatter } from "../formatter"; -const appRoot = require("app-root-path"); - export abstract class Packer { protected archive: any; protected document: Document;