diff --git a/src/tinify/Client.ts b/src/tinify/Client.ts index d6aa47a..370a93c 100644 --- a/src/tinify/Client.ts +++ b/src/tinify/Client.ts @@ -8,7 +8,7 @@ import {version} from "../../package.json" import tinify from "../tinify" const boundaries = /-----BEGIN CERTIFICATE-----[\s\S]+?-----END CERTIFICATE-----\n/g -const data = fs.readFileSync(`${__dirname}/../data/cacert.pem`).toString() +const data = fs.readFileSync(path.join(__dirname, '..', 'data', 'cacert.pem')).toString(); interface ClientOptions { ca: RegExpMatchArray