From b4563c9ae280166ba7de8069c7a6ee8ac39bfc30 Mon Sep 17 00:00:00 2001 From: Victor Soares Date: Fri, 7 Apr 2023 10:20:00 -0300 Subject: [PATCH 1/2] :adhesive_bandage: fix: add bin gs folder to gitkeep --- .gitignore | 5 +++-- README.md | 2 +- bin/gs/.gitkeep | 0 package.json | 15 +++++++++------ 4 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 bin/gs/.gitkeep diff --git a/.gitignore b/.gitignore index b1d713d..b06fc14 100644 --- a/.gitignore +++ b/.gitignore @@ -116,5 +116,6 @@ dist .yarn/install-state.gz .pnp.* -# Binaries -bin/gs +# Ghostscript Binaries +bin/gs/* +!bin/gs/.gitkeep diff --git a/README.md b/README.md index ff1b326..488e64f 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ yarn add compress-pdf ```tsx import path from 'path'; import fs from 'fs'; -import compressPdf from 'compress-pdf'; +import { compress } from 'compress-pdf'; /** * After this run: diff --git a/bin/gs/.gitkeep b/bin/gs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index 9151753..5e6abf5 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "types": "dist/index.d.ts", "scripts": { "prepare": "husky install", - "fetch-binaries": "node dist/fetch-binaries", "copy-json-files-to-dist": "copyfiles -u 1 src/**/*.json dist/", "style:format": "prettier \"*.{js,json,yml,yaml,md}\" \"src/**/*\" --write", "lint": "eslint --color --ext .ts \"src/**/*.+(ts)\"", @@ -22,7 +21,7 @@ "package": "npm run build && npm pack", "build": "tsup", "release": "npm run build && npm publish", - "release-local": "npm run build && npm link && echo [FINISH]: Run \"npm link lib-template\" to link the package to your project" + "release-local": "npm run build && npm link && echo [FINISH]: Run \"npm link compress-pdf\" to link the package to your project" }, "publishConfig": { "access": "public" @@ -33,15 +32,19 @@ ], "keywords": [ "library", - "template" + "compress-pdf", + "compress", + "pdf", + "optimize", + "reduce" ], - "repository": "https://github.com/victorsoares96/lib-template", + "repository": "https://github.com/victorsoares96/compress-pdf", "author": "Victor Soares (https://github.com/victorsoares96)", "license": "MIT", "bugs": { - "url": "https://github.com/victorsoares96/lib-template/issues" + "url": "https://github.com/victorsoares96/compress-pdf/issues" }, - "homepage": "https://github.com/victorsoares96/lib-template#readme", + "homepage": "https://github.com/victorsoares96/compress-pdf#readme", "peerDependencies": {}, "dependencies": { "lodash": "4.17.21", From 908c457a5c38d6e37fe46749664088fad7777471 Mon Sep 17 00:00:00 2001 From: Victor Soares Date: Fri, 7 Apr 2023 10:21:02 -0300 Subject: [PATCH 2/2] :bookmark: tags: v0.2.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5e6abf5..05083c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "compress-pdf", - "version": "0.2.0", + "version": "0.2.1", "templateVersion": "1.3.0", "description": "An compress pdf library using ghostscript", "main": "dist/index.js",