From f4ba65969c179713bb7af5a5ec71afd74109a088 Mon Sep 17 00:00:00 2001 From: jgoux Date: Wed, 1 Jun 2022 00:23:19 +0200 Subject: [PATCH] fix(esm): add exports map to package.json --- package.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/package.json b/package.json index e193b8d..879034d 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,18 @@ "version": "0.0.0-semantically-released", "description": "Simple and complete CLI testing utilities that encourage good testing practices.", "main": "dist/index.js", + "exports": { + ".": { + "types": "./types/index.d.ts", + "require": "./dist/cli-testing-library.cjs.js", + "import": "./dist/cli-testing-library.esm.js" + }, + "./extend-expect": { + "types": "./extend-expect.d.ts", + "require": "./dist/extend-expect.js", + "import": "./dist/extend-expect.js" + } + }, "types": "types/index.d.ts", "module": "dist/cli-testing-library.esm.js", "umd:main": "dist/cli-testing-library.umd.js",