Skip to content

Commit

Permalink
fix: prioritize config version over package version. #228
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 13, 2024
1 parent 6ca9b70 commit b872b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b872b3b

Please sign in to comment.