diff --git a/index.js b/index.js index ac06e83..f9697c3 100644 --- a/index.js +++ b/index.js @@ -23,7 +23,7 @@ const outputDir = path.join(cwd , 'output'); const options = { method: 'POST', hostname: 'tinypng.com', - path: '/web/shrink', + path: '/backend/opt/shrink', headers: { rejectUnauthorized: false, 'Postman-Token': Date.now(), diff --git a/package.json b/package.json index 0b89090..8c39847 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "super-tinypng": "./index.js" }, "scripts": { + "build": "pkg -t node14-win index.js ", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": {