Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update shared build script (#771)

Leendert de Borstd291ad5ba24b
diff --git a/shared/build-and-distribute.sh b/shared/build-and-distribute.sh
index 4021ea8fa..9a36f7558 100755
--- a/shared/build-and-distribute.sh
+++ b/shared/build-and-distribute.sh
@@ -8,13 +8,13 @@ PACKAGES_DIR="./"
# Define output targets for each package
IDENTITY_TARGETS=(
- #"../apps/mobile-app/shared/identity-generator"
"../apps/browser-extension/src/utils/shared/identity-generator"
+ "../apps/mobile-app/utils/shared/identity-generator"
)
PASSWORD_TARGETS=(
- #"../apps/mobile-app/shared/password-generator"
"../apps/browser-extension/src/utils/shared/password-generator"
+ "../apps/mobile-app/utils/shared/password-generator"
)
# Build and distribute a package
@@ -26,7 +26,7 @@ build_and_copy() {
local package_path="$PACKAGES_DIR/$package_name"
echo "📦 Building $package_name..."
- (cd "$package_path" && npm install && npm run build)
+ (cd "$package_path" && npm install && npm run lint && npm run test && npm run build)
local dist_path="$package_path/dist"
local files_to_copy=("index.js" "index.mjs" "index.d.ts" "index.js.map" "index.mjs" "index.mjs.map")
diff --git a/shared/identity-generator/package-lock.json b/shared/identity-generator/package-lock.json
index 5c51b2a15..d894e788f 100644
--- a/shared/identity-generator/package-lock.json
+++ b/shared/identity-generator/package-lock.json
@@ -1,11 +1,11 @@
{
- "name": "@aliasvault/av-identity-generator",
+ "name": "@aliasvault/identity-generator",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "@aliasvault/av-identity-generator",
+ "name": "@aliasvault/identity-generator",
"version": "1.0.0",
"license": "MIT",
"dependencies": {
diff --git a/shared/identity-generator/package.json b/shared/identity-generator/package.json
index c1d16d15c..e12c0a7d1 100644
--- a/shared/identity-generator/package.json
+++ b/shared/identity-generator/package.json
@@ -6,7 +6,8 @@
"scripts": {
"build": "tsup",
"clean": "rm -rf dist",
- "test": "vitest",
+ "test": "vitest run",
+ "test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "eslint src",
"lint:custom": "eslint",
diff --git a/shared/password-generator/package-lock.json b/shared/password-generator/package-lock.json
index 0bb7d318d..77d9d4af7 100644
--- a/shared/password-generator/package-lock.json
+++ b/shared/password-generator/package-lock.json
@@ -1,11 +1,11 @@
{
- "name": "@aliasvault/av-password-generator",
+ "name": "@aliasvault/password-generator",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "@aliasvault/av-password-generator",
+ "name": "@aliasvault/password-generator",
"version": "1.0.0",
"license": "MIT",
"dependencies": {
diff --git a/shared/password-generator/package.json b/shared/password-generator/package.json
index da61626d8..948c5baaa 100644
--- a/shared/password-generator/package.json
+++ b/shared/password-generator/package.json
@@ -6,7 +6,8 @@
"scripts": {
"build": "tsup",
"clean": "rm -rf dist",
- "test": "vitest",
+ "test": "vitest run",
+ "test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "eslint src",
"lint:custom": "eslint",