diff --git a/src/@types/meta.json.d.ts b/src/@types/meta.json.d.ts new file mode 100644 index 0000000000..ab812682b6 --- /dev/null +++ b/src/@types/meta.json.d.ts @@ -0,0 +1,3 @@ +declare module '*/meta.json' { + const version: string; +} diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index 6aed1b2298..91cb095c92 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -6,7 +6,7 @@ import define from '../define'; import fetchMeta from '../../../misc/fetch-meta'; import * as pkg from '../../../../package.json'; -const client = require('../../../../built/client/meta.json'); +import * as client from '../../../../built/client/meta.json'; export const meta = { stability: 'stable',