From 888d078464a3c6e163e875cb65db94722cd98677 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Tue, 23 Apr 2024 13:14:02 +0200 Subject: [PATCH] fix(makeProgram): specify .mjs and .cjs config files are allowed (#1976) --- lib/svgo/coa.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/svgo/coa.js b/lib/svgo/coa.js index 62404fc34..62abcfff6 100644 --- a/lib/svgo/coa.js +++ b/lib/svgo/coa.js @@ -47,7 +47,10 @@ export default function makeProgram(program) { '-p, --precision ', 'Set number of digits in the fractional part, overrides plugins params', ) - .option('--config ', 'Custom config file, only .js is supported') + .option( + '--config ', + 'Custom config file, only .js, .mjs, and .cjs is supported', + ) .option( '--datauri ', 'Output as Data URI string (base64), URI encoded (enc) or unencoded (unenc)',