Skip to content

Commit

Permalink
Fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jan 15, 2025
1 parent 1593616 commit 0cbe148
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lib/mirror.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ export class Mirror {
try {
if (dirPath && !dirPath.startsWith('.') && existsSync(dirPath)) {
const files = readdirSync(dirPath).filter(name => !name.startsWith('.'));
files.forEach(file => {
for (const file of files) {
const fullName = join(dirPath, file);
const stats = statSync(fullName);
if (stats.isDirectory()) {
Expand All @@ -617,7 +617,7 @@ export class Mirror {
name: fullName,
};
}
});
}
}
} catch (err: unknown) {
this.log.error(`Error while checking files in directory ${dirPath}: ${err as Error}`);
Expand Down
6 changes: 3 additions & 3 deletions src/lib/typescriptSettings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type CompilerOptions, ScriptTarget, ModuleResolutionKind, ModuleKind } from 'typescript';
import { type CompilerOptions, ScriptTarget /*, ModuleResolutionKind, ModuleKind */ } from 'typescript';

// Node.js 18+ supports the features of ES2022
// consider changing this, so we get to support the newest features too
Expand All @@ -22,8 +22,8 @@ export const tsCompilerOptions: CompilerOptions = {
// This is required for QueryResults to be iterable (https://github.com/ioBroker/ioBroker.javascript/pull/663#issuecomment-721645705)
downlevelIteration: true,
// Specify the module resolution strategy
moduleResolution: ModuleResolutionKind.NodeNext,
module: ModuleKind.ESNext,
// moduleResolution: ModuleResolutionKind.NodeNext,
// module: ModuleKind.ESNext,
lib: [`lib.${targetTsLib}.d.ts`],
};

Expand Down

0 comments on commit 0cbe148

Please sign in to comment.