From b872b3b8954f700ba09ad3d79b5b856c29d2bc2d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Wed, 13 Nov 2024 14:55:17 +0800 Subject: [PATCH] fix: prioritize config version over package version. #228 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index fb8de17d..b4f5fce4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -234,7 +234,7 @@ export default async (options: SvgToFontOptions = {}) => { } } if (options.website && pkg.version) { - options.website.version = pkg.version; + options.website.version = options.website.version ?? pkg.version; } } if (options.log === undefined) options.log = true;