From 5e144e6e35b831041a19d0026a758cff4da9f034 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Wed, 18 Feb 2026 21:33:59 +0100 Subject: [PATCH] =?UTF-8?q?Retrait=20des=20d=C3=A9pendances=20sharp=20ajou?= =?UTF-8?q?t=C3=A9es=20manuellement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le fix repose sur CC_BUILD_COMMAND="npm install --ignore-scripts && npm run build" côté Clever Cloud, qui empêche le postinstall de sharp de planter. Plus besoin de forcer sharp en devDependency explicite. --- package-lock.json | 8 +++++--- package.json | 3 --- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index b38375a..6bcdcba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,13 +11,10 @@ "@astrojs/check": "^0.9.6", "@astrojs/tailwind": "^6.0.2", "@biomejs/biome": "1.7.3", - "@img/sharp-libvips-linux-x64": "^1.2.4", - "@img/sharp-linux-x64": "^0.34.5", "@tailwindcss/typography": "^0.5.13", "@types/node": "^25.0.3", "astro": "^5.17.2", "dotenv": "^17.2.3", - "sharp": "^0.34.5", "tailwindcss": "^3.4.3", "tsx": "^4.21.0", "typescript": "^5.7.3", @@ -958,6 +955,7 @@ "integrity": "sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==", "dev": true, "license": "MIT", + "optional": true, "engines": { "node": ">=18" } @@ -1136,6 +1134,7 @@ ], "dev": true, "license": "LGPL-3.0-or-later", + "optional": true, "os": [ "linux" ], @@ -1301,6 +1300,7 @@ ], "dev": true, "license": "Apache-2.0", + "optional": true, "os": [ "linux" ], @@ -3640,6 +3640,7 @@ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", "dev": true, "license": "Apache-2.0", + "optional": true, "engines": { "node": ">=8" } @@ -6797,6 +6798,7 @@ "dev": true, "hasInstallScript": true, "license": "Apache-2.0", + "optional": true, "dependencies": { "@img/colour": "^1.0.0", "detect-libc": "^2.1.2", diff --git a/package.json b/package.json index 5fdbb35..2747e8c 100644 --- a/package.json +++ b/package.json @@ -16,13 +16,10 @@ "@astrojs/check": "^0.9.6", "@astrojs/tailwind": "^6.0.2", "@biomejs/biome": "1.7.3", - "@img/sharp-libvips-linux-x64": "^1.2.4", - "@img/sharp-linux-x64": "^0.34.5", "@tailwindcss/typography": "^0.5.13", "@types/node": "^25.0.3", "astro": "^5.17.2", "dotenv": "^17.2.3", - "sharp": "^0.34.5", "tailwindcss": "^3.4.3", "tsx": "^4.21.0", "typescript": "^5.7.3",