From c968c7aefccb325f6e596894ff6c5700027ef5da Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sat, 29 Nov 2025 13:41:28 -0800 Subject: [PATCH] css and js util fns --- package.json | 5 ++++- src/{utils.ts => utils.tsx} | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) rename src/{utils.ts => utils.tsx} (85%) 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