|
1
|
import Configstore from "configstore" |
|
2
|
|
|
3
|
let config: Configstore |
|
4
|
|
|
5
|
export const getConfigStore = (): Configstore => { |
|
6
|
if (!config) { |
|
7
|
config = new Configstore( |
|
8
|
`medusa`, |
|
9
|
{}, |
|
10
|
{ |
|
11
|
globalConfigPath: true, |
|
12
|
} |
|
13
|
) |
|
14
|
} |
|
15
|
|
|
16
|
return config |
|
17
|
} |