diff --git a/packages/module/generate-index.js b/packages/module/generate-index.js index daa1a09..d312242 100644 --- a/packages/module/generate-index.js +++ b/packages/module/generate-index.js @@ -6,7 +6,7 @@ const root = process.cwd(); const ENV_AGNOSTIC_ROOT = `${root}/src` -const sourceFiles = globSync(path.resolve(__dirname, './src/*/index.ts')) +const sourceFiles = globSync(path.resolve(__dirname, './src/*/index.{ts,tsx}')) async function generateIndex(files) { // ensure the dynamic root exists @@ -19,7 +19,7 @@ async function generateIndex(files) { stream.write('// this file is autogenerated by generate-index.js, modifying it manually will have no effect\n'); files.forEach(file => { - const name = file.replace('/index.ts', '').split('/').pop(); + const name = file.replace(/\/index\.(ts|tsx)$/, '').split('/').pop(); // do not generate default exports for Hooks/ name !== 'Hooks' && stream.write(`\nexport { default as ${name} } from './${name}';\n`); stream.write(`export * from './${name}';\n`); diff --git a/packages/module/src/DataViewTh/index.ts b/packages/module/src/DataViewTh/index.ts new file mode 100644 index 0000000..4dbedeb --- /dev/null +++ b/packages/module/src/DataViewTh/index.ts @@ -0,0 +1,2 @@ +export { default } from './DataViewTh'; +export * from './DataViewTh'; \ No newline at end of file diff --git a/packages/module/src/index.ts b/packages/module/src/index.ts index aca7f76..a534d3c 100644 --- a/packages/module/src/index.ts +++ b/packages/module/src/index.ts @@ -7,6 +7,9 @@ export * from './Hooks'; export { default as DataViewToolbar } from './DataViewToolbar'; export * from './DataViewToolbar'; +export { default as DataViewTh } from './DataViewTh'; +export * from './DataViewTh'; + export { default as DataViewTextFilter } from './DataViewTextFilter'; export * from './DataViewTextFilter'; @@ -22,6 +25,9 @@ export * from './DataViewTableBasic'; export { default as DataViewTable } from './DataViewTable'; export * from './DataViewTable'; +export { default as DataViewFilters } from './DataViewFilters'; +export * from './DataViewFilters'; + export { default as DataViewEventsContext } from './DataViewEventsContext'; export * from './DataViewEventsContext';