Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add separate build file for identity-generator (#900)
Leendert de Borst6ab20501e927
diff --git a/apps/browser-extension/src/utils/shared/identity-generator/README.md b/apps/browser-extension/src/utils/shared/identity-generator/README.mdindex b46a10238..ccbbee91f 100644--- a/apps/browser-extension/src/utils/shared/identity-generator/README.md+++ b/apps/browser-extension/src/utils/shared/identity-generator/README.md@@ -5,5 +5,5 @@ This folder contains the output of the shared `identity-generator` module from t**Do not edit any of these files manually.**To make changes:-1. Update the source files in `packages/identity-generator/src`-2. Run the `build-and-distribute.sh` script at the root of the project to regenerate the outputs and copy them here.+1. Update the source files in the `/shared/identity-generator/src` directory+2. Run the `build.sh` script in the module directory to regenerate the outputs and copy them here.diff --git a/apps/mobile-app/utils/shared/identity-generator/README.md b/apps/mobile-app/utils/shared/identity-generator/README.mdindex b46a10238..ccbbee91f 100644--- a/apps/mobile-app/utils/shared/identity-generator/README.md+++ b/apps/mobile-app/utils/shared/identity-generator/README.md@@ -5,5 +5,5 @@ This folder contains the output of the shared `identity-generator` module from t**Do not edit any of these files manually.**To make changes:-1. Update the source files in `packages/identity-generator/src`-2. Run the `build-and-distribute.sh` script at the root of the project to regenerate the outputs and copy them here.+1. Update the source files in the `/shared/identity-generator/src` directory+2. Run the `build.sh` script in the module directory to regenerate the outputs and copy them here.diff --git a/apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator/README.md b/apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator/README.mdindex b46a10238..ccbbee91f 100644--- a/apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator/README.md+++ b/apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator/README.md@@ -5,5 +5,5 @@ This folder contains the output of the shared `identity-generator` module from t**Do not edit any of these files manually.**To make changes:-1. Update the source files in `packages/identity-generator/src`-2. Run the `build-and-distribute.sh` script at the root of the project to regenerate the outputs and copy them here.+1. Update the source files in the `/shared/identity-generator/src` directory+2. Run the `build.sh` script in the module directory to regenerate the outputs and copy them here.diff --git a/shared/identity-generator/build.sh b/shared/identity-generator/build.shnew file mode 100755index 000000000..d03c56962--- /dev/null+++ b/shared/identity-generator/build.sh@@ -0,0 +1,46 @@+#!/bin/bash++set -e # Stop on error+set -u # Treat unset variables as errors++# Define output targets for identity-generator+TARGETS=(+ "../../apps/browser-extension/src/utils/shared/identity-generator"+ "../../apps/mobile-app/utils/shared/identity-generator"+ "../../apps/server/AliasVault.Client/wwwroot/js/shared/identity-generator"+)++# Build and distribute identity-generator+package_name="identity-generator"+package_path="."++echo "📦 Building $package_name..."+npm install && npm run lint && npm run test && npm run build++dist_path="dist"+files_to_copy=("index.js" "index.mjs" "index.d.ts" "index.js.map" "index.mjs" "index.mjs.map")++for target in "${TARGETS[@]}"; do+ echo "📂 Copying $package_name → $target"+ mkdir -p "$target"++ # Copy specific build outputs+ for file in "${files_to_copy[@]}"; do+ cp "$dist_path/$file" "$target/"+ done++ # Write README+ cat > "$target/README.md" <<EOF+# ⚠️ Auto-Generated Files++This folder contains the output of the shared \`$package_name\` module from the \`/shared\` directory in the AliasVault project.++**Do not edit any of these files manually.**++To make changes:+1. Update the source files in the \`/shared/identity-generator/src\` directory+2. Run the \`build.sh\` script in the module directory to regenerate the outputs and copy them here.+EOF+done++echo "✅ Identity generator build and copy completed."\ No newline at end of file