c04d93cd04
* feat(create-medusa-app): update command for a better onboarding experience * use medusa-telemetry for tracking * update used snapshot * added changeset * update yarn.lock * increased facts timer * updated snapshot version * show facts throughout installation + add first_run to url * added message after server termination * print message only once * added github to process terminated message * address pr feedback * added onboarding seeding * fix for npm install
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
|
|
}
|