diff --git a/crates/bitwarden-wasm-internal/build.sh b/crates/bitwarden-wasm-internal/build.sh index 3a0c266c..1c3ac63a 100755 --- a/crates/bitwarden-wasm-internal/build.sh +++ b/crates/bitwarden-wasm-internal/build.sh @@ -6,6 +6,9 @@ cd "$(dirname "$0")" # Move to the root of the repository cd ../../ +# Write VERSION file +git rev-parse HEAD > ./crates/bitwarden-wasm-internal/npm/VERSION + if [ "$1" != "-r" ]; then # Dev cargo build -p bitwarden-wasm-internal --target wasm32-unknown-unknown diff --git a/crates/bitwarden-wasm-internal/npm/package.json b/crates/bitwarden-wasm-internal/npm/package.json index 7495368a..82d3a879 100644 --- a/crates/bitwarden-wasm-internal/npm/package.json +++ b/crates/bitwarden-wasm-internal/npm/package.json @@ -4,16 +4,17 @@ "license": "GPL-3.0", "files": [ "bitwarden_wasm_internal_bg.js", - "bitwarden_wasm_internal_bg.wasm", "bitwarden_wasm_internal_bg.wasm.d.ts", "bitwarden_wasm_internal_bg.wasm.js", + "bitwarden_wasm_internal_bg.wasm", "bitwarden_wasm_internal.d.ts", "bitwarden_wasm_internal.js", "index.js", - "node/bitwarden_wasm_internal_bg.wasm", "node/bitwarden_wasm_internal_bg.wasm.d.ts", + "node/bitwarden_wasm_internal_bg.wasm", "node/bitwarden_wasm_internal.d.ts", - "node/bitwarden_wasm_internal.js" + "node/bitwarden_wasm_internal.js", + "VERSION" ], "main": "node/bitwarden_wasm_internal.js", "module": "index.js",