mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
refactor(desktop): sync package metadata from root
This commit is contained in:
10
package.json
10
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",
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user