Skip to content

Commit

Permalink
Fix matchers check
Browse files Browse the repository at this point in the history
  • Loading branch information
rChaoz committed Jan 23, 2025
1 parent b5d60b8 commit d4298f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/kit/src/core/sync/create_manifest_data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ function create_matchers(config, cwd) {
const matchers = {};
if (fs.existsSync(config.kit.files.params)) {
for (const file of fs.readdirSync(config.kit.files.params)) {
if (config.kit.testExtensions.find((ext) => file.endsWith(ext))) continue;

const ext = path.extname(file);
if (config.kit.testExtensions.includes(ext) || !config.kit.moduleExtensions.includes(ext))
continue;
if (!config.kit.moduleExtensions.includes(ext)) continue;
const type = file.slice(0, -ext.length);

if (/^\w+$/.test(type)) {
Expand Down

0 comments on commit d4298f8

Please sign in to comment.