From af19b5e1c1ea32a2e58092091f774d7fc6b4b854 Mon Sep 17 00:00:00 2001 From: "g. nicholas d'andrea" Date: Mon, 9 Mar 2026 16:35:26 -0400 Subject: [PATCH] Add exports field to bugc-react for CSS entrypoints The playground imports CSS files from bugc-react via `@ethdebug/bugc-react/src/components/*.css`. These imports currently rely on Vite resolving through monorepo symlinks without an exports field. Adding a proper exports map future-proofs these imports if bugc-react ever adds a restrictive exports field later. --- packages/bugc-react/package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/bugc-react/package.json b/packages/bugc-react/package.json index d2c740b10..3eb23f4f6 100644 --- a/packages/bugc-react/package.json +++ b/packages/bugc-react/package.json @@ -6,6 +6,13 @@ "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "license": "MIT", + "exports": { + ".": { + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" + }, + "./src/components/*.css": "./src/components/*.css" + }, "imports": { "#components/*": { "types": "./src/components/*.tsx",