Co-authored-by: opencode <opencode@sst.dev>
This commit is contained in:
Dax
2026-01-29 13:17:55 -05:00
committed by GitHub
parent ae9199e101
commit 9ed3b0742f
27 changed files with 368 additions and 367 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",