diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-20 21:34:56 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-20 21:34:56 +0900 |
| commit | 3cb5ed167af31782acecbc2ccbc2e7a89ba6d633 (patch) | |
| tree | 61384dcd9a09987f68aab79f4afd7322da4963a5 /src/config | |
| parent | fix: use correct query generate function (#7657) (diff) | |
| download | sharkey-3cb5ed167af31782acecbc2ccbc2e7a89ba6d633.tar.gz sharkey-3cb5ed167af31782acecbc2ccbc2e7a89ba6d633.tar.bz2 sharkey-3cb5ed167af31782acecbc2ccbc2e7a89ba6d633.zip | |
fix: meta.jsonをimportしないように
Fix #7671
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/load.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/load.ts b/src/config/load.ts index 6a1cf60a41..c7965e6c41 100644 --- a/src/config/load.ts +++ b/src/config/load.ts @@ -7,7 +7,6 @@ import { fileURLToPath } from 'url'; import { dirname } from 'path'; import * as yaml from 'js-yaml'; import { Source, Mixin } from './types'; -import * as meta from '../meta.json'; //const _filename = fileURLToPath(import.meta.url); const _filename = __filename; @@ -26,6 +25,7 @@ const path = process.env.NODE_ENV === 'test' : `${dir}/default.yml`; export default function load() { + const meta = JSON.parse(fs.readFileSync(`${_dirname}/../meta.json`, 'utf-8')); const config = yaml.load(fs.readFileSync(path, 'utf-8')) as Source; const mixin = {} as Mixin; |