From 2edbaba74235d82c72827f87e3ba50c001d288d5 Mon Sep 17 00:00:00 2001 From: Taken Date: Thu, 4 Jan 2024 22:11:09 +0100 Subject: [PATCH] Fixing dev deploy script --- scripts/dev-deploy.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/dev-deploy.ts b/scripts/dev-deploy.ts index ba5f26c..0a5a7e3 100644 --- a/scripts/dev-deploy.ts +++ b/scripts/dev-deploy.ts @@ -5,17 +5,17 @@ import { Command } from "../src/interfaces" const rest = new REST({ version: "10" }).setToken(env.dev.devtoken!) const commands: RESTPutAPIApplicationCommandsJSONBody = [] -const commandFiles = fs.readdirSync("./dist/src/commands/").filter(file => file.endsWith(".js")) -const contentMenuCommands = fs.readdirSync("./dist/src/commands-contextmenu/").filter(file => file.endsWith(".js")) +const commandFiles = fs.readdirSync("./src/commands/").filter(file => file.endsWith(".ts")) +const contentMenuCommands = fs.readdirSync("./src/commands-contextmenu/").filter(file => file.endsWith(".ts")) for (const file of commandFiles) { - const command: Command = require(`../dist/src/commands/${file}`) + const command: Command = require(`../src/commands/${file}`) if (command.dev) { commands.push(command.data.toJSON()) } } for (const file of contentMenuCommands) { - const command: Command = require(`../dist/src/commands-contextmenu/${file}`) + const command: Command = require(`../src/commands-contextmenu/${file}`) if (command.dev) { commands.push(command.data.toJSON()) }