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

Commit b499ecd

Browse files
committed
fix: missing types for workerd
1 parent 5f55c16 commit b499ecd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

js/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ build:
55
$(MAKE) build-target WASM_PATH=$(WASM_PATH) TARGET=deno
66

77
# shim workerd
8-
cp $(ROOT_DIR)/shim-workerd.js $(ROOT_DIR)/pkg-experimental-nodejs-module/
8+
cp -r $(ROOT_DIR)/pkg-experimental-nodejs-module $(ROOT_DIR)/pkg-workerd
9+
cp $(ROOT_DIR)/shim-workerd.js $(ROOT_DIR)/pkg-workerd/pulsebeam_core.js
910

1011
build-target:
1112
wasm-bindgen --target $(TARGET) --out-dir $(ROOT_DIR)/pkg-$(TARGET) --typescript $(WASM_PATH)

js/shim-workerd.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
/// <reference types="./pulsebeam_core.d.ts" />
2+
13
// Cloudflare doesn't support URL, import.meta.url, and fs.readFileSync
24
// https://github.com/cloudflare/workers-sdk/issues/7265#issuecomment-2480871605
3-
45
let imports = {};
56
import * as import0 from "./pulsebeam_core_bg.js";
67
import wasmModule from "./pulsebeam_core_bg.wasm";

0 commit comments

Comments
 (0)