Skip to content

Commit

Permalink
feat: allow scripts.ts and scripts.js (#153)
Browse files Browse the repository at this point in the history
Co-authored-by: Suzu Tomo <[email protected]>
  • Loading branch information
nnmrts and kamekyame authored Nov 23, 2021
1 parent 7122759 commit d5b5dc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export const configs = [
"scripts.config.ts",
"denon.config.js",
"scripts.config.js",

"scripts.ts",
"scripts.js",
];

export const reConfig = new RegExp(
Expand Down Expand Up @@ -150,7 +153,7 @@ export async function readConfig(
config.watcher.paths.push(Deno.cwd());

if (file) {
if (file.endsWith("config.js") || file.endsWith("config.ts")) {
if (file.endsWith(".js") || file.endsWith(".ts")) {
const parsed = await importConfig(file);
if (parsed) {
config = merge(
Expand Down

0 comments on commit d5b5dc6

Please sign in to comment.