From 805f9813ec63907107b0958501e60e54e019fc04 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Tue, 19 Mar 2024 21:05:45 +0100 Subject: [PATCH] fix: ship valid ESM --- package.json | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4f3b068..3646c78 100644 --- a/package.json +++ b/package.json @@ -16,18 +16,19 @@ "license": "MIT", "author": "Sanity.io ", "sideEffects": false, + "type": "module", "exports": { ".": { "types": "./dist/pt-to-html.d.ts", "source": "./src/index.ts", - "import": "./dist/pt-to-html.esm.js", - "require": "./dist/pt-to-html.js", - "default": "./dist/pt-to-html.esm.js" + "import": "./dist/pt-to-html.js", + "require": "./dist/pt-to-html.cjs", + "default": "./dist/pt-to-html.js" }, "./package.json": "./package.json" }, - "main": "./dist/pt-to-html.js", - "module": "./dist/pt-to-html.esm.js", + "main": "./dist/pt-to-html.cjs", + "module": "./dist/pt-to-html.js", "source": "./src/index.ts", "types": "./dist/pt-to-html.d.ts", "files": [