Skip to content

Commit

Permalink
change npm namespace for wasm build script (#899)
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Moreno <[email protected]>
  • Loading branch information
Swolebrain and Victor Moreno authored May 22, 2024
1 parent 6db37f5 commit 1d82a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cedar-wasm/build-wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Without this, the built wasm still works, but the Typescript definitions made by tsify don't.
set -e
cargo build
wasm-pack build --scope amzn --target bundler
wasm-pack build --scope cedar-policy --target bundler

sed -i "s/[{]\s*!: /{ \"!\": /g" pkg/cedar_wasm.d.ts
sed -i "s/[{]\s*==: /{ \"==\": /g" pkg/cedar_wasm.d.ts
Expand All @@ -40,4 +40,4 @@ echo "type Name = string;" >> pkg/cedar_wasm.d.ts
echo "type Id = string;" >> pkg/cedar_wasm.d.ts
echo "export type TypeOfAttribute = SchemaType & { required?: boolean };" >> pkg/cedar_wasm.d.ts
echo "export type Context = Record<string, CedarValueJson>;" >> pkg/cedar_wasm.d.ts
echo "Finished post-processing types file"
echo "Finished post-processing types file"

0 comments on commit 1d82a6e

Please sign in to comment.