Skip to content

Commit e3cc3a1

Browse files
committed
Try another fix for windows
1 parent 76fc1d1 commit e3cc3a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.eslintplugin/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import path from 'path';
99
// Re-export all .ts files as rules
1010
const rules: Record<string, LooseRuleDefinition> = {};
1111
await Promise.all(
12-
glob.sync(`${import.meta.dirname}/*.ts`)
12+
glob.sync('*.ts', { cwd: import.meta.dirname })
1313
.filter(file => !file.endsWith('index.ts') && !file.endsWith('utils.ts'))
1414
.map(async file => {
15-
rules[path.basename(file, '.ts')] = (await import(file)).default;
15+
rules[path.basename(file, '.ts')] = (await import('./' + file)).default;
1616
})
1717
);
1818

0 commit comments

Comments
 (0)