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));