Skip to content

Commit 0c2652a

Browse files
committed
temp: patch out broken wasm-pack package
1 parent 6eedbc8 commit 0c2652a

4 files changed

Lines changed: 23 additions & 3 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ jobs:
374374
test -f rivetkit-typescript/packages/rivetkit-wasm/pkg/rivetkit_wasm.js
375375
test -f rivetkit-typescript/packages/rivetkit-wasm/pkg/rivetkit_wasm.d.ts
376376
test -f rivetkit-typescript/packages/rivetkit-wasm/pkg/rivetkit_wasm_bg.wasm
377-
378377
- name: Place native binaries in platform packages
379378
run: |
380379
NATIVE_DIR=rivetkit-typescript/packages/rivetkit-napi

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
"@codemirror/autocomplete": "6.18.7",
5656
"@codemirror/commands": "6.8.1",
5757
"@codemirror/lint": "6.8.5"
58+
},
59+
"patchedDependencies": {
60+
"wasm-pack@0.14.0": "patches/wasm-pack@0.14.0.patch"
5861
}
5962
}
6063
}

patches/wasm-pack@0.14.0.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/binary.js b/binary.js
2+
index 7f0472a1f80325d4b75860f0ec9f784779a90c01..f9d1fae49b5bb6dd6baa1a8e268c8aa930fe299a 100644
3+
--- a/binary.js
4+
+++ b/binary.js
5+
@@ -31,7 +31,7 @@ const getPlatform = () => {
6+
const getBinary = () => {
7+
const platform = getPlatform();
8+
const version = require("./package.json").version;
9+
- const author = "drager";
10+
+ const author = "wasm-bindgen";
11+
const name = "wasm-pack";
12+
const url = `https://github.com/${author}/${name}/releases/download/v${version}/${name}-v${version}-${platform}.tar.gz`;
13+
return new Binary(platform === windows ? "wasm-pack.exe" : "wasm-pack", url, {

pnpm-lock.yaml

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)