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.
This commit is contained in:
Corey Johnson 2026-01-05 11:30:23 -08:00
parent 04c2137fe2
commit 82722ec9e4

View File

@ -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",