This commit is contained in:
Dax Raad
2025-09-29 01:06:12 -04:00
parent e7cb5d8345
commit fbced21b8e
2 changed files with 6 additions and 4 deletions

View File

@@ -7,10 +7,11 @@ import { $ } from "bun"
await $`bun tsc`
const pkg = await import("../package.json")
const pkg = await import("../package.json").then((m) => m.default)
// @ts-expect-error
delete pkg.devDependencies
for (const [key, value] of Object.entries(pkg.exports)) {
const file = value.replace("./src/", "./").replace(".ts", "")
// @ts-expect-error
pkg.exports[key] = {
import: file + ".js",
types: file + ".d.ts",