Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 26c33de

Browse files
committed
remove wasm internal from generated docs
1 parent 907377a commit 26c33de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ build:
66

77
build-target:
88
wasm-pack build --target $(TARGET) --out-dir $(PWD)/pkg-$(TARGET) --release --no-pack --weak-refs
9+
# jsr requires explicit d.ts reference, https://github.com/jsr-io/jsr/issues/370#issuecomment-2044467118
10+
sed -i '1s~^~/// <reference types="./pulsebeam_core.d.ts" />\n~' $(PWD)/pkg-$(TARGET)/pulsebeam_core.js
11+
sed -i '/free(): void;/d' $(PWD)/pkg-$(TARGET)/pulsebeam_core.d.ts
12+
# sed -i '/^export function __/d' $(PWD)/pkg-$(TARGET)/*.wasm.d.ts
13+
# sed -i '/^export const __/d' $(PWD)/pkg-$(TARGET)/*.wasm.d.ts
914

1015
test: build
1116
deno test -A app.test.ts

0 commit comments

Comments
 (0)