Skip to content

Commit

Permalink
Loose dep version to fix npm install error in test
Browse files Browse the repository at this point in the history
  • Loading branch information
myl7 committed Feb 2, 2024
1 parent cd89be6 commit be086d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ case "$1" in
"preinstall")
sed -i '/"wasm-pack": "/d' brotli-wasm/package.json
sed -i '/"devDependencies": {/a\ "brotli-dec-wasm": "file:../..",' brotli-wasm/package.json
# Loose @types/node version to avoid errors when installing
sed -i 's/"@types\/node": "^15.6.0"/"@types\/node": "*"/' brotli-wasm/package.json
;;
"pretest")
sed -i "/import brotliPromise, { type BrotliWasmType } from '..'/a import brotliDecPromise, { type BrotliDecWasmType } from 'brotli-dec-wasm';" brotli-wasm/test/brotli.spec.ts
Expand Down

0 comments on commit be086d3

Please sign in to comment.