diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4c1b470cf5..4ab9b8c1a8 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -374,7 +374,6 @@ jobs: test -f rivetkit-typescript/packages/rivetkit-wasm/pkg/rivetkit_wasm.js test -f rivetkit-typescript/packages/rivetkit-wasm/pkg/rivetkit_wasm.d.ts test -f rivetkit-typescript/packages/rivetkit-wasm/pkg/rivetkit_wasm_bg.wasm - - name: Place native binaries in platform packages run: | NATIVE_DIR=rivetkit-typescript/packages/rivetkit-napi diff --git a/package.json b/package.json index 1f02924655..8b75ad3dba 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,9 @@ "@codemirror/autocomplete": "6.18.7", "@codemirror/commands": "6.8.1", "@codemirror/lint": "6.8.5" + }, + "patchedDependencies": { + "wasm-pack@0.14.0": "patches/wasm-pack@0.14.0.patch" } } } diff --git a/patches/wasm-pack@0.14.0.patch b/patches/wasm-pack@0.14.0.patch new file mode 100644 index 0000000000..a3a2cf4473 --- /dev/null +++ b/patches/wasm-pack@0.14.0.patch @@ -0,0 +1,13 @@ +diff --git a/binary.js b/binary.js +index 7f0472a1f80325d4b75860f0ec9f784779a90c01..f9d1fae49b5bb6dd6baa1a8e268c8aa930fe299a 100644 +--- a/binary.js ++++ b/binary.js +@@ -31,7 +31,7 @@ const getPlatform = () => { + const getBinary = () => { + const platform = getPlatform(); + const version = require("./package.json").version; +- const author = "drager"; ++ const author = "wasm-bindgen"; + const name = "wasm-pack"; + const url = `https://github.com/${author}/${name}/releases/download/v${version}/${name}-v${version}-${platform}.tar.gz`; + return new Binary(platform === windows ? "wasm-pack.exe" : "wasm-pack", url, { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 60a55f9a6d..9d959cd6b6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,6 +24,11 @@ overrides: '@codemirror/commands': 6.8.1 '@codemirror/lint': 6.8.5 +patchedDependencies: + wasm-pack@0.14.0: + hash: 3c7b8af86d6b541704193ec3130f1444612e1187cf4f53aff0ed0570b58d5e56 + path: patches/wasm-pack@0.14.0.patch + importers: .: @@ -4377,7 +4382,7 @@ importers: version: 5.9.3 wasm-pack: specifier: 0.14.0 - version: 0.14.0 + version: 0.14.0(patch_hash=3c7b8af86d6b541704193ec3130f1444612e1187cf4f53aff0ed0570b58d5e56) rivetkit-typescript/packages/sql-loader: devDependencies: @@ -34887,7 +34892,7 @@ snapshots: warn-once@0.1.1: {} - wasm-pack@0.14.0: + wasm-pack@0.14.0(patch_hash=3c7b8af86d6b541704193ec3130f1444612e1187cf4f53aff0ed0570b58d5e56): dependencies: binary-install: 1.1.2 transitivePeerDependencies: