Skip to content

Commit

Permalink
Fix fileLoder typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoGheza committed Nov 30, 2021
1 parent 04fd5a0 commit c45f0a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/_helpers/fileLoder.ts → src/_helpers/fileLoader.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fs from "fs";
import path from "path";

export function loadClassesFromFolder(folder: string): void {
for (const file of fs.readdirSync(path.join(__dirname, "../", folder)).filter((f) => !f.startsWith("_"))) {
require(path.join(__dirname, "../", folder, file.replace(".ts", "")));
}
import fs from "fs";
import path from "path";

export function loadClassesFromFolder(folder: string): void {
for (const file of fs.readdirSync(path.join(__dirname, "../", folder)).filter((f) => !f.startsWith("_"))) {
require(path.join(__dirname, "../", folder, file.replace(".ts", "")));
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import { Actions } from './_globals/Actions';
import { uuidv4 } from './_helpers/uuid';
import { logFilePath, Logs, serverLogger, tallyDataFile } from './_helpers/logger';
import { getNetworkInterfaces } from './_helpers/networkInterfaces';
import { loadClassesFromFolder } from './_helpers/fileLoder';
import { loadClassesFromFolder } from './_helpers/fileLoader';
import { UsePort } from './_decorators/UsesPort.decorator';
import { secondsToHms } from './_helpers/time';
import { currentConfig, getConfigRedacted, readConfig, SaveConfig, replaceConfig } from './_helpers/config';
Expand Down

0 comments on commit c45f0a1

Please sign in to comment.