Fix: Packages no longer point to their minified

bundle for the browser.
This commit is contained in:
Aria Minaei 2021-06-27 13:45:21 +02:00
parent 385cfad9aa
commit 47f7da157a
2 changed files with 19 additions and 5 deletions

View file

@ -15,7 +15,6 @@
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"browser": "dist/index.min.js",
"exports": {
".": {
"require": "./dist/index.cjs",

View file

@ -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"