feat: update paths to typescript /dist

This commit is contained in:
Marius Begby committed 2023-08-26 22:19:04 +02:00
1 parent 92b1992b1a
commit c3891f9c2d
6 files changed
+13 -12

No files matched your search

+1
View File
@@ -6,3 +6,4 @@
/logs/app-*.log
/cookies.json
/cookies.txt
/dist
+5 -5
View File
@@ -19,11 +19,11 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node ./src/index.js",
"start-pretty": "node ./src/index.js | pino-pretty --ignore environment,source,module,action,name,context,executionId,shardId,guildId",
"start-pretty-no-ignore": "node ./src/index.js | pino-pretty",
"deploy": "node ./src/utils/deploySlashCommands.js",
"deploy-pretty": "node ./src/utils/deploySlashCommands.js | pino-pretty --ignore environment,source,module,action,name,context,executionId,shardId,guildId",
"start": "node ./dist/index.js",
"start-pretty": "node ./dist/index.js | pino-pretty --ignore environment,source,module,action,name,context,executionId,shardId,guildId",
"start-pretty-no-ignore": "node ./dist/index.js | pino-pretty",
"deploy": "node ./dist/utils/deploySlashCommands.js",
"deploy-pretty": "node ./dist/utils/deploySlashCommands.js | pino-pretty --ignore environment,source,module,action,name,context,executionId,shardId,guildId",
"eslint": "eslint ./"
},
"dependencies": {
+1 -1
View File
@@ -3,7 +3,7 @@ const shardingOptions = require('config').get('shardingOptions');
const { ShardingManager, ShardEvents } = require('discord.js');
const { v4: uuidv4 } = require('uuid');
const manager = new ShardingManager('./src/bot.js', {
const manager = new ShardingManager('./dist/bot.js', {
token: process.env.DISCORD_BOT_TOKEN,
...shardingOptions
});
+2 -2
View File
@@ -17,10 +17,10 @@ const logger = require('../services/logger').child({
const slashCommands = [];
const systemCommands = [];
const commandFolders = fs.readdirSync(path.resolve('./src/commands'));
const commandFolders = fs.readdirSync(path.resolve('./dist/commands'));
for (const folder of commandFolders) {
const commandFiles = fs
.readdirSync(path.resolve(`./src/commands/${folder}`))
.readdirSync(path.resolve(`./dist/commands/${folder}`))
.filter((file) => file.endsWith('.js'));
for (const file of commandFiles) {
+2 -2
View File
@@ -14,11 +14,11 @@ exports.registerClientCommands = ({ client, executionId }) => {
logger.debug('Registering client commands...');
client.commands = new Collection();
const commandFolders = fs.readdirSync(path.resolve('./src/commands'));
const commandFolders = fs.readdirSync(path.resolve('./dist/commands'));
for (const folder of commandFolders) {
logger.trace(`Registering client commands for folder '${folder}'...`);
const commandFiles = fs
.readdirSync(path.resolve(`./src/commands/${folder}`))
.readdirSync(path.resolve(`./dist/commands/${folder}`))
.filter((file) => file.endsWith('.js'));
for (const file of commandFiles) {
+2 -2
View File
@@ -15,12 +15,12 @@ exports.registerEventListeners = ({ client, player, executionId }) => {
logger.debug('Registering event listeners...');
const eventFolders = fs.readdirSync(path.resolve('./src/events'));
const eventFolders = fs.readdirSync(path.resolve('./dist/events'));
for (const folder of eventFolders) {
logger.trace(`Registering event listener for folder '${folder}'...`);
const eventFiles = fs
.readdirSync(path.resolve(`./src/events/${folder}`))
.readdirSync(path.resolve(`./dist/events/${folder}`))
.filter((file) => file.endsWith('.js'));
for (const file of eventFiles) {