From 08e37540ebe2df03c46ecef38ac58cb42e5631b6 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Wed, 25 Mar 2026 23:34:02 +0700 Subject: [PATCH] refactor(desktop): sync package metadata from root --- package.json | 10 +++++++++- packages/desktop/package.json | 22 +++++++++++----------- scripts/sync-workspace-versions.mjs | 17 +++++++++++++++++ 3 files changed, 37 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 5c3181a62..a659950bd 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "typescript": "^5.9.3" }, "description": "Paseo: voice-controlled development environment with OpenAI Realtime API", + "homepage": "https://paseo.sh", "keywords": [ "openai", "realtime", @@ -76,7 +77,14 @@ "development", "mcp" ], - "author": "moboudra", + "author": { + "name": "Mohamed Boudra", + "email": "boudra.moha@gmail.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/getpaseo/paseo.git" + }, "license": "AGPL-3.0-or-later", "overrides": { "lightningcss": "1.30.1", diff --git a/packages/desktop/package.json b/packages/desktop/package.json index 550bff339..e49bb0d0c 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -3,16 +3,6 @@ "version": "0.1.34", "private": true, "description": "Paseo desktop app (Electron wrapper)", - "homepage": "https://paseo.sh", - "repository": { - "type": "git", - "url": "https://github.com/getpaseo/paseo.git" - }, - "author": { - "name": "Mohamed Boudra", - "email": "boudra.moha@gmail.com" - }, - "license": "AGPL-3.0-or-later", "main": "dist/main.js", "scripts": { "build": "npm --prefix ../.. run build:daemon && npm run build:main && electron-builder --config electron-builder.yml", @@ -35,5 +25,15 @@ "typescript": "5.9.3", "unzip-crx-3": "^0.2.0", "wait-on": "8.0.5" - } + }, + "homepage": "https://paseo.sh", + "repository": { + "type": "git", + "url": "https://github.com/getpaseo/paseo.git" + }, + "author": { + "name": "Mohamed Boudra", + "email": "boudra.moha@gmail.com" + }, + "license": "AGPL-3.0-or-later" } diff --git a/scripts/sync-workspace-versions.mjs b/scripts/sync-workspace-versions.mjs index a3f9740a4..1d24a7145 100644 --- a/scripts/sync-workspace-versions.mjs +++ b/scripts/sync-workspace-versions.mjs @@ -9,6 +9,12 @@ const rootPackagePath = path.join(rootDir, "package.json"); const rootPackage = JSON.parse(readFileSync(rootPackagePath, "utf8")); const rootVersion = rootPackage.version; const workspacePaths = Array.isArray(rootPackage.workspaces) ? rootPackage.workspaces : []; +const sharedMetadata = { + homepage: rootPackage.homepage, + repository: rootPackage.repository, + author: rootPackage.author, + license: rootPackage.license, +}; if (typeof rootVersion !== "string" || rootVersion.length === 0) { throw new Error('Root package.json must contain a valid "version"'); @@ -37,6 +43,17 @@ for (const workspacePath of workspacePaths) { changed = true; } + if (pkg.name === "@getpaseo/desktop") { + for (const [field, value] of Object.entries(sharedMetadata)) { + const currentValue = JSON.stringify(pkg[field]); + const nextValue = JSON.stringify(value); + if (currentValue !== nextValue) { + pkg[field] = value; + changed = true; + } + } + } + for (const section of dependencySections) { const deps = pkg[section]; if (!deps || typeof deps !== "object") {