From c2e1ee5bd9782a41a0506e64bbe69abaab51ad6e Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Thu, 10 Feb 2022 21:51:37 +0100 Subject: [PATCH] Rename fields in package.json --- package.json | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index b6855e3..341580b 100644 --- a/package.json +++ b/package.json @@ -21,12 +21,15 @@ "email": "me@kytta.dev", "url": "https://www.kytta.dev" }, - "main": "./dist/shareon.cjs", - "module": "./dist/shareon.mjs", - "unpkg": "./dist/shareon.min.js", + "main": "./dist/shareon.umd.js", + "unpkg": "./dist/shareon.iife.js", + "jsdelivr": "./dist/shareon.iife.js", + "module": "./dist/shareon.es.js", "exports": { - "require": "./dist/shareon.cjs", - "import": "./dist/shareon.mjs" + ".": { + "import": "./dist/shareon.es.js", + "require": "./dist/shareon.umd.js" + } }, "files": [ "dist" @@ -65,7 +68,7 @@ }, { "limit": "1 KB", - "path": "./dist/shareon.mjs" + "path": "./dist/shareon.es.js" } ] }