Skip to content

Commit d546f2f

Browse files
committed
fix: filter out the declaration files
closes #10
1 parent 20f194a commit d546f2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/raids/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ const __dirname = dirname(__filename)
1212
*/
1313
const raidModules: Collection<RaidName, Raid> = new Collection()
1414

15-
const raidFiles = readdirSync(__dirname).filter(file => !file.startsWith('index'))
15+
const raidFiles = readdirSync(__dirname).filter(
16+
file => !file.endsWith('.d.ts') && !file.startsWith('index')
17+
)
1618
for (const raidFile of raidFiles) {
1719
const raid: Raid = (await import(join('file://', __dirname, raidFile))).default
1820
raidModules.set(raid.name, raid)

0 commit comments

Comments
 (0)