File tree Expand file tree Collapse file tree 6 files changed +11
-12
lines changed Expand file tree Collapse file tree 6 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
import { SlashCommandBuilder , ChatInputCommandInteraction } from "discord.js" ;
2
- import { ValidatorService } from "../services/validator-service" ;
3
- import { ChainInfoService } from "../services/chaininfo-service" ;
2
+ import { ValidatorService } from "../services/validator-service.js " ;
3
+ import { ChainInfoService } from "../services/chaininfo-service.js " ;
4
4
5
5
export default {
6
6
data : new SlashCommandBuilder ( )
Original file line number Diff line number Diff line change 1
1
import { SlashCommandBuilder , ChatInputCommandInteraction } from "discord.js" ;
2
- import { ChainInfoService } from "../services/chaininfo-service" ;
2
+ import { ChainInfoService } from "../services/chaininfo-service.js " ;
3
3
4
4
export default {
5
5
data : new SlashCommandBuilder ( )
Original file line number Diff line number Diff line change 1
- import address from "./addValidator" ;
2
- import chainInfo from "./getChainInfo" ;
1
+ import addValidator from "./addValidator.js " ;
2
+ import getChainInfo from "./getChainInfo.js " ;
3
3
4
4
export default {
5
- address ,
6
- chainInfo ,
5
+ addValidator ,
6
+ getChainInfo ,
7
7
} ;
Original file line number Diff line number Diff line change 5
5
Interaction ,
6
6
MessageFlags ,
7
7
} from "discord.js" ;
8
- import { deployCommands } from "./deploy-commands" ;
8
+ import { deployCommands } from "./deploy-commands.js " ;
9
9
import commands from "./commands/index.js" ;
10
10
import {
11
11
BOT_TOKEN ,
Original file line number Diff line number Diff line change 9
9
ETHEREUM_PRIVATE_KEY ,
10
10
ETHEREUM_VALUE ,
11
11
} from "../env.js" ;
12
- import { ChainInfoService } from "./chaininfo-service.js" ;
13
12
14
13
const execAsync = promisify ( exec ) ;
15
14
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"target" : " ES2020" ,
4
- "module" : " commonjs" ,
4
+ "module" : " NodeNext" ,
5
+ "moduleResolution" : " nodenext" ,
5
6
"outDir" : " ./dist" ,
6
7
"rootDir" : " ./src" ,
7
8
"strict" : true ,
8
9
"esModuleInterop" : true ,
9
10
"skipLibCheck" : true ,
10
- "forceConsistentCasingInFileNames" : true ,
11
- "resolveJsonModule" : true
11
+ "forceConsistentCasingInFileNames" : true
12
12
},
13
13
"include" : [" src/**/*" ],
14
14
"exclude" : [" node_modules" , " dist" ]
You can’t perform that action at this time.
0 commit comments