mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Cleanup
This commit is contained in:
parent
1cf8fd1241
commit
d064d46668
32 changed files with 429 additions and 400 deletions
10
packages/safe-chain/src/config/safeChainDir.js
Normal file
10
packages/safe-chain/src/config/safeChainDir.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import os from "os";
|
||||
import path from "path";
|
||||
import { getInstalledSafeChainDir } from "../installLocation.js";
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
export function getSafeChainBaseDir() {
|
||||
return getInstalledSafeChainDir() ?? path.join(os.homedir(), ".safe-chain");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue