refactor: refactoring imports
将来ESMに移行しやすいように Related: #7658 なんかmochaが起動しなくなってるけど理由不明 すぐ直したい
This commit is contained in:
parent
31e3aaeda0
commit
b9cb6d1c10
663 changed files with 3194 additions and 3134 deletions
|
|
@ -1,12 +1,12 @@
|
|||
import * as http from 'http';
|
||||
import * as websocket from 'websocket';
|
||||
|
||||
import MainStreamConnection from './stream';
|
||||
import MainStreamConnection from './stream/index.js';
|
||||
import { ParsedUrlQuery } from 'querystring';
|
||||
import authenticate from './authenticate';
|
||||
import authenticate from './authenticate.js';
|
||||
import { EventEmitter } from 'events';
|
||||
import { subsdcriber as redisClient } from '../../db/redis';
|
||||
import { Users } from '@/models';
|
||||
import { subsdcriber as redisClient } from '../../db/redis.js';
|
||||
import { Users } from '@/models/index.js';
|
||||
|
||||
module.exports = (server: http.Server) => {
|
||||
// Init websocket server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue