Upload code

This commit is contained in:
2023-11-01 15:33:35 +08:00
commit 6860f2eb72
415 changed files with 50990 additions and 0 deletions
@@ -0,0 +1,8 @@
import {join, normalize} from 'path';
import {modifyYaml} from '@common/utils';
import {ALAS_CONFIG_YAML} from '@common/constant/config';
export function modifyConfigYaml(path: string, keyObj: {[k in string]: any}) {
const configYamlPath = join(normalize(path) + `./config/${ALAS_CONFIG_YAML}`);
return modifyYaml(configYamlPath, keyObj);
}