refactor(desktop): sync package metadata from root
This commit is contained in:
+9
-1
@@ -68,6 +68,7 @@
|
|||||||
"typescript": "^5.9.3"
|
"typescript": "^5.9.3"
|
||||||
},
|
},
|
||||||
"description": "Paseo: voice-controlled development environment with OpenAI Realtime API",
|
"description": "Paseo: voice-controlled development environment with OpenAI Realtime API",
|
||||||
|
"homepage": "https://paseo.sh",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"openai",
|
"openai",
|
||||||
"realtime",
|
"realtime",
|
||||||
@@ -76,7 +77,14 @@
|
|||||||
"development",
|
"development",
|
||||||
"mcp"
|
"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",
|
"license": "AGPL-3.0-or-later",
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"lightningcss": "1.30.1",
|
"lightningcss": "1.30.1",
|
||||||
|
|||||||
@@ -3,16 +3,6 @@
|
|||||||
"version": "0.1.34",
|
"version": "0.1.34",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Paseo desktop app (Electron wrapper)",
|
"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",
|
"main": "dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm --prefix ../.. run build:daemon && npm run build:main && electron-builder --config electron-builder.yml",
|
"build": "npm --prefix ../.. run build:daemon && npm run build:main && electron-builder --config electron-builder.yml",
|
||||||
@@ -35,5 +25,15 @@
|
|||||||
"typescript": "5.9.3",
|
"typescript": "5.9.3",
|
||||||
"unzip-crx-3": "^0.2.0",
|
"unzip-crx-3": "^0.2.0",
|
||||||
"wait-on": "8.0.5"
|
"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 rootPackage = JSON.parse(readFileSync(rootPackagePath, "utf8"));
|
||||||
const rootVersion = rootPackage.version;
|
const rootVersion = rootPackage.version;
|
||||||
const workspacePaths = Array.isArray(rootPackage.workspaces) ? rootPackage.workspaces : [];
|
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) {
|
if (typeof rootVersion !== "string" || rootVersion.length === 0) {
|
||||||
throw new Error('Root package.json must contain a valid "version"');
|
throw new Error('Root package.json must contain a valid "version"');
|
||||||
@@ -37,6 +43,17 @@ for (const workspacePath of workspacePaths) {
|
|||||||
changed = true;
|
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) {
|
for (const section of dependencySections) {
|
||||||
const deps = pkg[section];
|
const deps = pkg[section];
|
||||||
if (!deps || typeof deps !== "object") {
|
if (!deps || typeof deps !== "object") {
|
||||||
|
|||||||
Reference in New Issue
Block a user