Skip to content

Commit a2d3e08

Browse files
committed
dic migration
1 parent a5d1e7d commit a2d3e08

File tree

5 files changed

+865
-6
lines changed

5 files changed

+865
-6
lines changed

index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import { Command } from 'commander';
22
import { TradeCommand } from './src/command/trade';
33
import { ServerCommand } from './src/command/server';
44
import { BackfillCommand } from './src/command/backfill';
5-
6-
// init
7-
const services = require('./src/modules/services');
5+
import services from './src/modules/services';
86

97
const program = new Command();
108

src/command/backfill.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const services = require('../modules/services');
1+
import services from '../modules/services';
22

33
export class BackfillCommand {
44
constructor() {}

src/command/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const services = require('../modules/services');
1+
import services from '../modules/services';
22

33
export class ServerCommand {
44
constructor(instance: string) {}

src/command/trade.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const services = require('../modules/services');
1+
import services from '../modules/services';
22

33
export class TradeCommand {
44
constructor(instance: string) {}

0 commit comments

Comments
 (0)