From 6ec55f53cd208b901044ae59324bb22079f5d934 Mon Sep 17 00:00:00 2001 From: Starman <30315137+Starman3787@users.noreply.github.com> Date: Sat, 21 Dec 2024 11:45:26 +0000 Subject: [PATCH] fix validation script --- .github/scripts/validate-slash_commands.js | 2 +- .github/workflows/validate-commands.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/validate-slash_commands.js b/.github/scripts/validate-slash_commands.js index d1fedb8..5f995b1 100644 --- a/.github/scripts/validate-slash_commands.js +++ b/.github/scripts/validate-slash_commands.js @@ -1,6 +1,6 @@ import { readFileSync, existsSync, readdirSync } from "fs"; import { join } from "path"; -import { locales } from "../../index.js"; +import { locales } from "../../dist/index.js"; const baseDirectory = "./bot"; diff --git a/.github/workflows/validate-commands.yml b/.github/workflows/validate-commands.yml index 20640c3..a6415c8 100644 --- a/.github/workflows/validate-commands.yml +++ b/.github/workflows/validate-commands.yml @@ -24,4 +24,4 @@ jobs: - uses: actions/checkout@v2 - name: Validate Slash Command files - run: node .github/scripts/validate-slash_commands.js + run: npm run build && node .github/scripts/validate-slash_commands.js