From 3c710898428463de5b8c2a6b3e636fce7a1eb1b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Mestres?= Date: Wed, 31 Aug 2022 14:54:44 +0200 Subject: [PATCH] Add css in "exports" section of package.json (#774) * 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> --- package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a16830a1..5e7a8a13 100644 --- a/package.json +++ b/package.json @@ -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",