mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
raise the ES target level and enable sourcemaps in tsconfig.json
This commit is contained in:
parent
417bfc8a18
commit
593efb3602
2 changed files with 14 additions and 9 deletions
|
@ -182,12 +182,16 @@ export async function loadCommands(): Promise<Collection<string, Command>> {
|
||||||
if (cmd.isDirectory()) {
|
if (cmd.isDirectory()) {
|
||||||
if (cmd.name === "subcommands") continue;
|
if (cmd.name === "subcommands") continue;
|
||||||
else $.warn(`You can't have multiple levels of directories! From: "dist/commands/${cmd.name}"`);
|
else $.warn(`You can't have multiple levels of directories! From: "dist/commands/${cmd.name}"`);
|
||||||
} else loadCommand(cmd.name, list, selected.name);
|
} else if (cmd.name.endsWith(".js")) {
|
||||||
|
loadCommand(cmd.name, list, selected.name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
subdir.close();
|
subdir.close();
|
||||||
categories.set(category, list);
|
categories.set(category, list);
|
||||||
} else loadCommand(selected.name, listMisc);
|
} else if (selected.name.endsWith(".js")) {
|
||||||
|
loadCommand(selected.name, listMisc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dir.close();
|
dir.close();
|
||||||
|
@ -236,7 +240,7 @@ export default new Command({
|
||||||
permission: null,
|
permission: null,
|
||||||
aliases: [],
|
aliases: [],
|
||||||
async run($: CommonLibrary): Promise<any> {
|
async run($: CommonLibrary): Promise<any> {
|
||||||
|
|
||||||
},
|
},
|
||||||
subcommands: {
|
subcommands: {
|
||||||
layer: new Command({
|
layer: new Command({
|
||||||
|
@ -246,7 +250,7 @@ export default new Command({
|
||||||
permission: null,
|
permission: null,
|
||||||
aliases: [],
|
aliases: [],
|
||||||
async run($: CommonLibrary): Promise<any> {
|
async run($: CommonLibrary): Promise<any> {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -256,7 +260,7 @@ export default new Command({
|
||||||
usage: '',
|
usage: '',
|
||||||
permission: null,
|
permission: null,
|
||||||
async run($: CommonLibrary): Promise<any> {
|
async run($: CommonLibrary): Promise<any> {
|
||||||
|
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
number: new Command({
|
number: new Command({
|
||||||
|
@ -265,7 +269,7 @@ export default new Command({
|
||||||
usage: '',
|
usage: '',
|
||||||
permission: null,
|
permission: null,
|
||||||
async run($: CommonLibrary): Promise<any> {
|
async run($: CommonLibrary): Promise<any> {
|
||||||
|
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
any: new Command({
|
any: new Command({
|
||||||
|
@ -274,7 +278,7 @@ export default new Command({
|
||||||
usage: '',
|
usage: '',
|
||||||
permission: null,
|
permission: null,
|
||||||
async run($: CommonLibrary): Promise<any> {
|
async run($: CommonLibrary): Promise<any> {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});`;
|
});`;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"target": "ES6",
|
"target": "es2019",
|
||||||
"module": "CommonJS",
|
"module": "CommonJS",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
@ -11,7 +11,8 @@
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"strictFunctionTypes": true,
|
"strictFunctionTypes": true,
|
||||||
"strictPropertyInitialization": true,
|
"strictPropertyInitialization": true,
|
||||||
"removeComments": true
|
"removeComments": true,
|
||||||
|
"sourceMap": true
|
||||||
},
|
},
|
||||||
"exclude": ["test"]
|
"exclude": ["test"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue