From bfc687c16697630bce81f6d0a195c2e71b17eb9f Mon Sep 17 00:00:00 2001 From: rinsuki <428rinsuki+git@gmail.com> Date: Fri, 25 Oct 2019 19:22:37 +0900 Subject: [PATCH] add ts to require target --- src/services/chart/entities.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/chart/entities.ts b/src/services/chart/entities.ts index 14fd3adba0..e3d5e6f8c6 100644 --- a/src/services/chart/entities.ts +++ b/src/services/chart/entities.ts @@ -2,6 +2,7 @@ import Chart from './core'; export const entities = Object.values(require('require-all')({ dirname: __dirname + '/charts/schemas', + filter: /^.+\.[jt]s$/, resolve: (x: any) => { return Chart.schemaToEntity(x.name, x.schema); }