Skip to content

Commit

Permalink
fix(@deltachat/stdio-rpc-server): make local non-symlinked installati…
Browse files Browse the repository at this point in the history
…on 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.
  • Loading branch information
Simon-Laux authored Jun 7, 2024
1 parent 889b947 commit 9c2526b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));

0 comments on commit 9c2526b

Please sign in to comment.