From a58c09d10343283d0f4f160dc8f52290b4311f6b Mon Sep 17 00:00:00 2001 From: Petr Klus Date: Thu, 19 May 2022 12:28:02 +0200 Subject: [PATCH] Update options.ts Add support for code-esm flag to allow exporting in ESM style modules --- src/commands/options.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/options.ts b/src/commands/options.ts index 99d6ae6..3eb72b0 100644 --- a/src/commands/options.ts +++ b/src/commands/options.ts @@ -26,6 +26,7 @@ const ajvOptions: SchemaMap = { multipleOfPrecision: boolOrNat, messages: {type: "boolean"}, [`${CODE}es5`]: {type: "boolean"}, + [`${CODE}esm`]: {type: "boolean"}, [`${CODE}lines`]: {type: "boolean"}, [`${CODE}optimize`]: boolOrNat, [`${CODE}formats`]: {type: "string"},