From 2f1d9efdf3220182002a380ad24ac4eb58a54602 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 28 Aug 2023 17:16:51 +0200 Subject: [PATCH] fix(build): trying to fix exports --- package.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 39b256e..84263b0 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,15 @@ "name": "@caporal/core", "version": "3.1.4", "description": "A full-featured framework for building command line applications (cli) with node.js", - "main": "./dist/", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", "exports": { - "types": "./dist/index.d.ts", - "require": "./dist/index.js", - "import": "./dist/index.mjs" + ".": { + "types": "./dist/index.d.ts", + "require": "./dist/index.js", + "import": "./dist/index.mjs" + } }, "scripts": { "lint": "eslint --ext .js,.ts,.tsx .",