Skip to content

Commit

Permalink
fix hooks.server matching hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainCodeman committed May 7, 2024
1 parent 7a62572 commit 3b6f917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/utils/filesystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export function resolve_entry(entry) {
const base = path.basename(entry);
const files = fs.readdirSync(dir);

const found = files.find((file) => file.replace(/\.[^.]+$/, '') === base);
const found = files.find((file) => file.replace(/\.(js|ts)$/, '') === base);

if (found) return path.join(dir, found);
}
Expand Down

0 comments on commit 3b6f917

Please sign in to comment.