Skip to content

Commit

Permalink
Merge pull request #33 from victorsoares96/feat/add-skip-binary-downl…
Browse files Browse the repository at this point in the history
…oad-env-option

✨ feature: add skip binary download env option
  • Loading branch information
victorsoares96 committed May 25, 2023
2 parents 2dce5b7 + ee4596d commit f4aa5a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const util = require('util');
const exec = util.promisify(childProcess.exec);

(async () => {
if (fs.existsSync(path.resolve(__dirname, '../dist'))) {
if (fs.existsSync(path.resolve(__dirname, '../dist')) && !process.env.SKIP_BINARY_DOWNLOAD) {
const fetchBinaries = require('./fetch-binaries');
const gsPath = path.resolve(__dirname, '../bin/gs');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "compress-pdf",
"version": "0.3.4",
"version": "0.3.5",
"templateVersion": "1.3.0",
"description": "An compress pdf library using ghostscript",
"main": "dist/index.js",
Expand Down

0 comments on commit f4aa5a9

Please sign in to comment.