From 82722ec9e4f24f7b415a28f8d3662ea21f7f7b75 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Mon, 5 Jan 2026 11:30:23 -0800 Subject: [PATCH] Update exports and editor script in package.json Refactored the exports field to provide explicit entry points for the main module, editor, and editor CSS. Updated the editor script to point to the example server file. --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 001c0b3..3bd935d 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,15 @@ { "name": "shrimp", "version": "0.1.0", - "exports": "./src/index.ts", + "exports": { + ".": "./src/index.ts", + "./editor": "./src/editor/index.ts", + "./editor.css": "./src/editor/editor.css" + }, "private": true, "type": "module", "scripts": { - "editor": "bun --hot src/editor/server.tsx", + "editor": "bun --hot src/editor/example/server.tsx", "repl": "bun bin/repl", "update-reef": "rm -rf ~/.bun/install/cache/ && rm bun.lock && bun update reefvm", "cli:install": "ln -s \"$(pwd)/bin/shrimp\" ~/.bun/bin/shrimp", @@ -33,4 +37,4 @@ "singleQuote": true, "printWidth": 100 } -} +} \ No newline at end of file