From 863e26311e6c583131a485d6e1f893e1abfadea4 Mon Sep 17 00:00:00 2001 From: hackape Date: Mon, 1 Apr 2019 23:22:15 +0800 Subject: [PATCH 1/2] fix: Also watch change in json files --- src/instance.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instance.ts b/src/instance.ts index d3f9e0b..fec71db 100644 --- a/src/instance.ts +++ b/src/instance.ts @@ -364,7 +364,7 @@ export function readConfigFile( } } -let EXTENSIONS = /\.tsx?$|\.jsx?$/ +let EXTENSIONS = /\.tsx?$|\.jsx?|.json$/ export type Dict = { [key: string]: T } const filterMtimes = (mtimes: any) => { From f182c7f053189fd928ac28267c232fd2a48945e1 Mon Sep 17 00:00:00 2001 From: hackape Date: Mon, 28 Oct 2019 10:31:33 +0800 Subject: [PATCH 2/2] fix regexp error --- src/instance.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instance.ts b/src/instance.ts index fec71db..4be8bf2 100644 --- a/src/instance.ts +++ b/src/instance.ts @@ -364,7 +364,7 @@ export function readConfigFile( } } -let EXTENSIONS = /\.tsx?$|\.jsx?|.json$/ +let EXTENSIONS = /\.tsx?$|\.jsx?$|\.json$/ export type Dict = { [key: string]: T } const filterMtimes = (mtimes: any) => {