diff --git a/src/ai.ts b/src/ai.ts index 701b97e..ecb7e30 100644 --- a/src/ai.ts +++ b/src/ai.ts @@ -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; type ContextHook = (key: any, msg: Message, data?: any) => Promise; diff --git a/src/config.ts b/src/config.ts index 31071e5..e409eb8 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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'; diff --git a/src/index.ts b/src/index.ts index 991a6d1..20f1fcc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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';