Node.js v22でのimport assertionの廃止に対応 (#154)

This commit is contained in:
Genki.Takeuchi 2025-01-05 16:54:49 +09:00 committed by GitHub
parent 3a6a7b83b9
commit 59ac631527
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ import type { User } from '@/misskey/user.js';
import Stream from '@/stream.js';
import log from '@/utils/log.js';
import { sleep } from './utils/sleep.js';
import pkg from '../package.json' assert { type: 'json' };
import pkg from '../package.json' with { type: 'json' };
type MentionHook = (msg: Message) => Promise<boolean | HandlerResult>;
type ContextHook = (key: any, msg: Message, data?: any) => Promise<void | boolean | HandlerResult>;

View file

@ -23,7 +23,7 @@ type Config = {
memoryDir?: string;
};
import config from '../config.json' assert { type: 'json' };
import config from '../config.json' with { type: 'json' };
config.wsUrl = config.host.replace('http', 'ws');
config.apiUrl = config.host + '/api';

View file

@ -8,7 +8,7 @@ import promiseRetry from 'promise-retry';
import from './ai.js';
import config from './config.js';
import _log from './utils/log.js';
import pkg from '../package.json' assert { type: 'json' };
import pkg from '../package.json' with { type: 'json' };
import CoreModule from './modules/core/index.js';
import TalkModule from './modules/talk/index.js';