From 0b6a52792628225d392775ba6b3d549aab5be59b Mon Sep 17 00:00:00 2001 From: Jon Vivian <2586037+4leite@users.noreply.github.com> Date: Wed, 15 Nov 2023 01:03:17 +1300 Subject: [PATCH] feat: add explicit rsc and css exports --- packages/core/package.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/core/package.json b/packages/core/package.json index 9778b42cd6..2f406e48b1 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -4,6 +4,20 @@ "private": false, "main": "./dist/index.js", "types": "./dist/index.d.ts", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "./rsc": { + "import": "./dist/rsc.js", + "require": "./dist/rsc.js", + "types": "./dist/rsc.d.ts" + }, + "./puck.css": "./dist/index.css", + "./dist/index.css": "./dist/index.css" + }, "license": "MIT", "scripts": { "lint": "eslint \"**/*.ts*\"",