diff --git a/package.json b/package.json index f32932d84..e66f01161 100644 --- a/package.json +++ b/package.json @@ -4,16 +4,22 @@ "description": "yargs the modern, pirate-themed, successor to optimist.", "main": "./index.cjs", "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.cjs" - }, + ".": [ + { + "import": "./index.mjs", + "require": "./index.cjs" + }, + "./index.cjs" + ], "./helpers": { "import": "./helpers.mjs" }, - "./yargs": { - "require": "./yargs" - } + "./yargs": [ + { + "require": "./yargs" + }, + "./yargs" + ] }, "type": "module", "module": "./index.mjs",