From dd4c7997a2628b2d0e834bcb72c18f9bb3314a71 Mon Sep 17 00:00:00 2001 From: Mattia Panzeri <1754457+panz3r@users.noreply.github.com> Date: Tue, 29 Sep 2026 16:39:13 +0200 Subject: [PATCH] fix(gulp-sharp): load yoctocolors as a runtime dependency instead of bundling it --- plugins/gulp-sharp/gulpfile.mjs | 2 +- plugins/gulp-sharp/package.json | 4 +++- pnpm-lock.yaml | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/gulp-sharp/gulpfile.mjs b/plugins/gulp-sharp/gulpfile.mjs index 3733c35..7d9835b 100644 --- a/plugins/gulp-sharp/gulpfile.mjs +++ b/plugins/gulp-sharp/gulpfile.mjs @@ -35,7 +35,7 @@ async function compile(variant) { const builder = await rollup({ input: `./src/index.js`, plugins: rollupPlugins, - external: ["sharp"], + external: ["sharp", "yoctocolors"], }); await builder.write({ diff --git a/plugins/gulp-sharp/package.json b/plugins/gulp-sharp/package.json index a1c6b04..0db5ce1 100644 --- a/plugins/gulp-sharp/package.json +++ b/plugins/gulp-sharp/package.json @@ -38,7 +38,9 @@ "@rollup/plugin-terser": "catalog:", "gulp": "catalog:", "rimraf": "catalog:", - "rollup": "catalog:", + "rollup": "catalog:" + }, + "dependencies": { "yoctocolors": "^2.2.0" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f562bd7..d883684 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -83,6 +83,9 @@ importers: sharp: specifier: '>=0.33' version: 0.35.1 + yoctocolors: + specifier: ^2.2.0 + version: 2.2.0 devDependencies: '@babel/core': specifier: 'catalog:' @@ -114,9 +117,6 @@ importers: rollup: specifier: 'catalog:' version: 4.63.5 - yoctocolors: - specifier: ^2.2.0 - version: 2.2.0 packages: