From 9c2526bbdd8c35abbfbd77064db44ce0ec0be43b Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Fri, 7 Jun 2024 23:32:57 +0200 Subject: [PATCH] fix(@deltachat/stdio-rpc-server): make local non-symlinked installation possible by using absolute paths for local dev version (#5679) this fixes the local non-symlinked (copied) instalation with `npm i --install-links=true` possible I probably need this for flatpak building. --- .../scripts/update_optional_dependencies_and_version.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deltachat-rpc-server/npm-package/scripts/update_optional_dependencies_and_version.js b/deltachat-rpc-server/npm-package/scripts/update_optional_dependencies_and_version.js index 5de23b4e52..551bdbbee9 100644 --- a/deltachat-rpc-server/npm-package/scripts/update_optional_dependencies_and_version.js +++ b/deltachat-rpc-server/npm-package/scripts/update_optional_dependencies_and_version.js @@ -55,9 +55,10 @@ for (const { folder_name, package_name } of platform_package_names) { } if (is_local) { - package_json.peerDependencies["@deltachat/jsonrpc-client"] = 'file:../../deltachat-jsonrpc/typescript' + package_json.peerDependencies["@deltachat/jsonrpc-client"] = + `file:${join(expected_cwd, "/../../deltachat-jsonrpc/typescript")}`; } else { - package_json.peerDependencies["@deltachat/jsonrpc-client"] = "*" + package_json.peerDependencies["@deltachat/jsonrpc-client"] = "*"; } await fs.writeFile("./package.json", JSON.stringify(package_json, null, 4));