From 47f7da157aee45818a45d78042f4fe2182637b26 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sun, 27 Jun 2021 13:45:21 +0200 Subject: [PATCH] Fix: Packages no longer point to their minified bundle for the browser. --- theatre/core/package.json | 1 - theatre/studio/package.json | 23 +++++++++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/theatre/core/package.json b/theatre/core/package.json index 0e57031..4f49473 100644 --- a/theatre/core/package.json +++ b/theatre/core/package.json @@ -15,7 +15,6 @@ }, "main": "dist/index.cjs", "module": "dist/index.mjs", - "browser": "dist/index.min.js", "exports": { ".": { "require": "./dist/index.cjs", diff --git a/theatre/studio/package.json b/theatre/studio/package.json index 687310d..39e7804 100644 --- a/theatre/studio/package.json +++ b/theatre/studio/package.json @@ -13,12 +13,27 @@ "email": "hello@theatrejs.com", "url": "https://www.theatrejs.com" }, - "main": "dist/index.js", + "main": "dist/index.cjs", + "module": "dist/index.mjs", + "exports": { + ".": { + "require": "./dist/index.cjs", + "import": "./dist/index.mjs", + "default": "./dist/index.cjs", + "node": "./dist/index.cjs", + "script": "./dist/index.min.js" + } + }, "types": "dist/index.d.ts", "files": [ - "dist/index.js", - "dist/index.d.ts", - "index.js.map" + "dist/index.cjs", + "dist/index.cjs.map", + "dist/index.mjs", + "dist/index.mjs.map", + "dist/index.min.js", + "dist/index.min.js.map", + "dist/index.min.js.LEGAL.txt", + "dist/index.d.ts" ], "scripts": { "prepack": "cd .. && yarn run prepare"