Skip to content

Commit

Permalink
Update file matching regex to exclude .d.ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodentman87 committed Jun 30, 2022
1 parent c267956 commit b0211ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slashasaurus",
"version": "0.10.3",
"version": "0.10.4",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/SlashasaurusClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ interface SlashasaurusClientEvents extends ClientEvents {
modalSubmit: [interaction: ModalSubmitInteraction];
}

const JSFileRegex = /(\.js|\.ts)x?$/;
const JSFileRegex = /(?<!\.d)(\.js|\.ts)x?$/;

export declare interface SlashasaurusClient extends Client<true> {
on<K extends keyof SlashasaurusClientEvents>(
Expand Down

0 comments on commit b0211ea

Please sign in to comment.