Fix: Packages no longer point to their minified
bundle for the browser.
This commit is contained in:
parent
385cfad9aa
commit
47f7da157a
2 changed files with 19 additions and 5 deletions
|
@ -15,7 +15,6 @@
|
||||||
},
|
},
|
||||||
"main": "dist/index.cjs",
|
"main": "dist/index.cjs",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.mjs",
|
||||||
"browser": "dist/index.min.js",
|
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"require": "./dist/index.cjs",
|
"require": "./dist/index.cjs",
|
||||||
|
|
|
@ -13,12 +13,27 @@
|
||||||
"email": "hello@theatrejs.com",
|
"email": "hello@theatrejs.com",
|
||||||
"url": "https://www.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",
|
"types": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist/index.js",
|
"dist/index.cjs",
|
||||||
"dist/index.d.ts",
|
"dist/index.cjs.map",
|
||||||
"index.js.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": {
|
"scripts": {
|
||||||
"prepack": "cd .. && yarn run prepare"
|
"prepack": "cd .. && yarn run prepare"
|
||||||
|
|
Loading…
Reference in a new issue