From 949053a7c54f8f98e1feb0bfbfbc74740cfaf383 Mon Sep 17 00:00:00 2001 From: Amit Haridas Date: Sun, 23 Aug 2026 08:58:21 +0530 Subject: [PATCH] fix(deps): move jszip and sharp to runtime dependencies, unpack sharp from asar - Add jszip (^3.10.1) to dependencies; keep version-pinned in overrides - Move sharp (^0.34.3) from devDependencies to dependencies for Phase B runtime use - Add node_modules/sharp/** to build.asarUnpack so native bindings are not packed Amit Haridas --- package-lock.json | 38 +++++--------------------------------- package.json | 6 ++++-- 2 files changed, 9 insertions(+), 35 deletions(-) diff --git a/package-lock.json b/package-lock.json index fb6405d..bae829e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "markdown-converter", - "version": "4.4.4", + "version": "4.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "markdown-converter", - "version": "4.4.4", + "version": "4.5.0", "license": "MIT", "dependencies": { "@codemirror/autocomplete": "^6.20.1", @@ -32,6 +32,7 @@ "ffmpeg-static": "^5.3.0", "highlight.js": "^11.11.1", "html2pdf.js": "^0.14.0", + "jszip": "^3.10.1", "marked": "^17.0.3", "marked-footnote": "^1.4.0", "marked-highlight": "^2.2.3", @@ -40,6 +41,7 @@ "pdfjs-dist": "^5.5.207", "pdfkit": "^0.17.2", "pizzip": "^3.2.0", + "sharp": "^0.34.3", "simple-git": "^3.32.3", "tslib": "^2.8.1" }, @@ -53,8 +55,7 @@ "eslint-plugin-prettier": "^5.5.4", "jest": "^30.2.0", "jest-environment-jsdom": "^30.2.0", - "prettier": "^3.7.4", - "sharp": "^0.34.3" + "prettier": "^3.7.4" } }, "node_modules/@antfu/install-pkg": { @@ -1424,7 +1425,6 @@ "version": "1.9.1", "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.1.tgz", "integrity": "sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==", - "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -1728,7 +1728,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", - "dev": true, "license": "MIT", "engines": { "node": ">=18" @@ -1741,7 +1740,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -1764,7 +1762,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -1787,7 +1784,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1804,7 +1800,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1821,7 +1816,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1838,7 +1832,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1855,7 +1848,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1872,7 +1864,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1889,7 +1880,6 @@ "cpu": [ "s390x" ], - "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1906,7 +1896,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1923,7 +1912,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1940,7 +1928,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1957,7 +1944,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -1980,7 +1966,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -2003,7 +1988,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -2026,7 +2010,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -2049,7 +2032,6 @@ "cpu": [ "s390x" ], - "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -2072,7 +2054,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -2095,7 +2076,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -2118,7 +2098,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -2141,7 +2120,6 @@ "cpu": [ "wasm32" ], - "dev": true, "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", "optional": true, "dependencies": { @@ -2161,7 +2139,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "Apache-2.0 AND LGPL-3.0-or-later", "optional": true, "os": [ @@ -2181,7 +2158,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "Apache-2.0 AND LGPL-3.0-or-later", "optional": true, "os": [ @@ -2201,7 +2177,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "Apache-2.0 AND LGPL-3.0-or-later", "optional": true, "os": [ @@ -6670,7 +6645,6 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "dev": true, "license": "Apache-2.0", "engines": { "node": ">=8" @@ -12142,7 +12116,6 @@ "version": "0.34.5", "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz", "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==", - "dev": true, "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { @@ -12187,7 +12160,6 @@ "version": "7.7.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", - "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" diff --git a/package.json b/package.json index 81b10ff..8156aef 100644 --- a/package.json +++ b/package.json @@ -52,8 +52,7 @@ "eslint-plugin-prettier": "^5.5.4", "jest": "^30.2.0", "jest-environment-jsdom": "^30.2.0", - "prettier": "^3.7.4", - "sharp": "^0.34.3" + "prettier": "^3.7.4" }, "dependencies": { "@codemirror/autocomplete": "^6.20.1", @@ -79,6 +78,7 @@ "ffmpeg-static": "^5.3.0", "highlight.js": "^11.11.1", "html2pdf.js": "^0.14.0", + "jszip": "^3.10.1", "marked": "^17.0.3", "marked-footnote": "^1.4.0", "marked-highlight": "^2.2.3", @@ -87,6 +87,7 @@ "pdfjs-dist": "^5.5.207", "pdfkit": "^0.17.2", "pizzip": "^3.2.0", + "sharp": "^0.34.3", "simple-git": "^3.32.3", "tslib": "^2.8.1" }, @@ -114,6 +115,7 @@ ], "asarUnpack": [ "node_modules/ffmpeg-static/**", + "node_modules/sharp/**", "assets/fonts/**" ], "extraFiles": [],