mirror of
https://github.com/chatmail/core.git
synced 2026-04-22 07:56:29 +03:00
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.
This commit is contained in:
@@ -55,9 +55,10 @@ for (const { folder_name, package_name } of platform_package_names) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (is_local) {
|
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 {
|
} else {
|
||||||
package_json.peerDependencies["@deltachat/jsonrpc-client"] = "*"
|
package_json.peerDependencies["@deltachat/jsonrpc-client"] = "*";
|
||||||
}
|
}
|
||||||
|
|
||||||
await fs.writeFile("./package.json", JSON.stringify(package_json, null, 4));
|
await fs.writeFile("./package.json", JSON.stringify(package_json, null, 4));
|
||||||
|
|||||||
Reference in New Issue
Block a user