refactor: refactoring imports

将来ESMに移行しやすいように
Related: #7658

なんかmochaが起動しなくなってるけど理由不明
すぐ直したい
This commit is contained in:
syuilo 2021-08-19 18:33:41 +09:00
parent 31e3aaeda0
commit b9cb6d1c10
663 changed files with 3194 additions and 3134 deletions

View file

@ -3,11 +3,11 @@ import * as stream from 'stream';
import * as util from 'util';
import { URL } from 'url';
import fetch from 'node-fetch';
import { getAgentByUrl } from './fetch';
import { getAgentByUrl } from './fetch.js';
import { AbortController } from 'abort-controller';
import config from '@/config';
import config from '@/config/index.js';
import * as chalk from 'chalk';
import Logger from '../services/logger';
import Logger from '@/services/logger.js';
const pipeline = util.promisify(stream.pipeline);