add ts to require target

This commit is contained in:
rinsuki 2019-10-25 19:22:37 +09:00
parent 88161c59d2
commit bfc687c166
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}