Skip to content

Commit

Permalink
feat: add support for .ts
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Jun 6, 2020
1 parent 23e670d commit df27540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/load_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { ScriptsConfiguration } from "./scripts_config.ts";

const CONFIG_FILE_NAMES = ["scripts", "velociraptor"];
const CONFIG_FILE_EXTENSIONS = ["yaml", "yml", "json", "js"];
const CONFIG_FILE_EXTENSIONS = ["yaml", "yml", "json", "js", "ts"];

export interface ConfigData {
cwd: string;
Expand All @@ -24,7 +24,7 @@ export function loadConfig(): Promise<ConfigData | null> {
if (existsSync(p)) {
resolve({
cwd: dir,
config: await parseConfig(p, ext == "js"),
config: await parseConfig(p, ext == "js" || ext == "ts"),
});
}
}
Expand Down

0 comments on commit df27540

Please sign in to comment.