diff --git a/package.json b/package.json index f966da1..7bf6f36 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,11 @@ { "name": "hype", "module": "src/index.tsx", - "exports": "./src/index.tsx", "type": "module", + "exports": { + ".": "./src/index.tsx", + "./utils": "./src/utils.tsx" + }, "devDependencies": { "@types/bun": "latest" }, diff --git a/src/utils.ts b/src/utils.tsx similarity index 85% rename from src/utils.ts rename to src/utils.tsx index 19948f7..0ede4ea 100644 --- a/src/utils.ts +++ b/src/utils.tsx @@ -1,6 +1,20 @@ import { type Context } from 'hono' import { stat } from 'fs/promises' +// template literal tag for inline CSS. returns a