From 489fc2fefae783641f712b070c55d8163b15fb4f Mon Sep 17 00:00:00 2001 From: Marco Falkenberg Date: Tue, 31 Oct 2023 15:13:08 +0100 Subject: [PATCH] Fix filenames in manifest --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ae985aa..c0593eb 100644 --- a/package.json +++ b/package.json @@ -9,18 +9,18 @@ "email": "opensource@mittwald.de" }, "homepage": "https://github.com/mittwald/react-use-promise#readme", - "main": "./dist/index.js", - "module": "./dist/index.mjs", + "main": "./dist/index.cjs", + "module": "./dist/index.js", "type": "module", "exports": { ".": { - "require": "./dist/index.js", - "import": "./dist/index.mjs", + "require": "./dist/index.cjs", + "import": "./dist/index.js", "types": "./dist/index.d.ts" } }, "scripts": { - "compile": "tsup src/index.ts --format cjs,esm --dts --clean", + "compile": "tsup src/index.ts --format esm,cjs --dts --clean", "compile:watch": "yarn compile --watch src", "format": "yarn format:base --write", "format:base": "prettier $@ '**/*.{ts,tsx,yaml,yml,json,md,mdx}'",