Skip to content

Commit

Permalink
Add css in "exports" section of package.json (#774)
Browse files Browse the repository at this point in the history
* add css in "exports" section of package.json to ease usage of mobiledoc-kit in ESM environment.

* Tweak name. Add top-level field for other tools

Co-authored-by: gpoitch <411908+gpoitch@users.noreply.github.com>
  • Loading branch information
romgere and gpoitch committed Aug 31, 2022
1 parent 3d5048b commit 3c71089
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package.json
Expand Up @@ -5,9 +5,15 @@
"repository": "https://github.com/bustle/mobiledoc-kit",
"module": "dist/mobiledoc.js",
"main": "dist/mobiledoc.cjs",
"style": "dist/mobiledoc.css",
"exports": {
"import": "./dist/mobiledoc.js",
"require": "./dist/mobiledoc.cjs"
".": {
"import": "./dist/mobiledoc.js",
"require": "./dist/mobiledoc.cjs"
},
"./style.css": {
"style": "./dist/mobiledoc.css"
}
},
"scripts": {
"start": "rollup -c --watch",
Expand Down

0 comments on commit 3c71089

Please sign in to comment.