1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-25 23:44:57 +02:00

migrate js-yaml

This commit is contained in:
kakkokari-gtyih
2026-07-05 19:13:32 +09:00
parent 7b0e7368a8
commit 7eceb466c8
5 changed files with 10 additions and 10 deletions

View File

@@ -6,7 +6,7 @@
import * as fs from 'node:fs/promises';
import * as path from 'node:path';
import { fileURLToPath } from 'node:url';
import * as yaml from 'js-yaml';
import { load as loadYaml } from 'js-yaml';
import { buildTarball } from './tarball.mjs';
const configDir = fileURLToPath(new URL('../.config', import.meta.url));
@@ -17,7 +17,7 @@ const configPath = process.env.MISSKEY_CONFIG_YML
: path.resolve(configDir, 'default.yml');
async function loadConfig() {
return fs.readFile(configPath, 'utf-8').then(data => yaml.load(data)).catch(() => null);
return fs.readFile(configPath, 'utf-8').then(data => loadYaml(data)).catch(() => null);
}
async function copyFrontendFonts() {