* feat: copied from medusa-cli * chore: gitignore * fix: add admin + storefront * fix: dev experience enhancement
18 lines
265 B
TypeScript
18 lines
265 B
TypeScript
import Configstore from "configstore"
|
|
|
|
let config: Configstore
|
|
|
|
export const getConfigStore = (): Configstore => {
|
|
if (!config) {
|
|
config = new Configstore(
|
|
`medusa`,
|
|
{},
|
|
{
|
|
globalConfigPath: true,
|
|
}
|
|
)
|
|
}
|
|
|
|
return config
|
|
}
|