Skip to content

Commit

Permalink
typescript supports import.meta.dirname now
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Jan 20, 2024
1 parent 888f123 commit 2a89786
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/deploy-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ interface CommandFile {
slashCommandData: SlashCommandBuilder;
}

// @ts-expect-error: import.meta.dirname was recently added in node 21.2.0
const directory = join(import.meta.dirname, '../src/commands');
const files = await readdir(directory);

Expand Down

0 comments on commit 2a89786

Please sign in to comment.