feat(utils): add files utils, remove logger, fix API url
This commit is contained in:
parent
bab32e8d70
commit
c46fd7a9c8
5 changed files with 18 additions and 25 deletions
|
|
@ -109,7 +109,6 @@ const mergeConfigs = (current: any, update: any): any => {
|
|||
export const updateConfig = (config: RecursivePartial<Config>) => {
|
||||
const currentConfig = loadConfig();
|
||||
const mergedConfig = mergeConfigs(currentConfig, config);
|
||||
console.log(mergedConfig);
|
||||
fs.writeFileSync(
|
||||
path.join(path.join(process.cwd(), `${configFileName}`)),
|
||||
toml.stringify(mergedConfig),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue