This commit is contained in:
Dax Raad 2026-01-29 11:16:32 -05:00
commit 1081d897b6
4 changed files with 16 additions and 28 deletions

View file

@ -6,13 +6,10 @@ import { $ } from "bun"
const dir = new URL("..", import.meta.url).pathname
process.chdir(dir)
await import("./build")
const pkg = await import("../package.json").then((m) => m.default)
const original = JSON.parse(JSON.stringify(pkg))
for (const [key, value] of Object.entries(pkg.exports)) {
const file = value.replace("./src/", "./dist/").replace(".ts", "")
/// @ts-expect-error
pkg.exports[key] = {
import: file + ".js",
types: file + ".d.ts",