sync
This commit is contained in:
parent
4300b4584a
commit
1081d897b6
4 changed files with 16 additions and 28 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue