Skip to content

Commit

Permalink
fix: revert require for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Nov 1, 2023
1 parent 8efbe07 commit b31b46b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"tsx": "^3.14.0",
"typedoc": "0.19.2",
"typedoc-plugin-as-member-of": "^1.0.2",
"typescript": "4.4.2"
"typescript": "4.7.4"
},
"peerDependencies": {
"express": "^4",
Expand Down
2 changes: 1 addition & 1 deletion src/node/creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class SlashCreator extends BaseSlashCreator {
const commands: any[] = [];
for (const filePath of filteredFiles) {
try {
commands.push(await import(filePath));
commands.push(require(filePath));
} catch (e) {
this.emit('error', new Error(`Failed to load command ${filePath}: ${e}`));
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2478,10 +2478,10 @@ typedoc@^0.21.10:
shiki "^0.9.8"
typedoc-default-themes "^0.12.10"

typescript@4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.2.tgz#6d618640d430e3569a1dfb44f7d7e600ced3ee86"
integrity sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==
typescript@4.7.4:
version "4.7.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235"
integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==

uglify-js@^3.1.4:
version "3.14.1"
Expand Down

0 comments on commit b31b46b

Please sign in to comment.