Skip to content

Commit 541f1d5

Browse files
fix: fixed @primereact/icons build (#8300)
1 parent 2ab6d96 commit 541f1d5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/icons/tsup.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { globSync } from 'glob';
22
import { defineConfig } from 'tsup';
33
import TsupOptions from '../../tsup.config';
44

5-
const entry = globSync('src/**/index.tsx').reduce((acc: Record<string, string>, file: string) => {
6-
const name = file.replace(/^src\//, '').replace(/\.tsx$/, '');
5+
const entry = globSync('src/**/index.{ts,tsx}').reduce((acc: Record<string, string>, file: string) => {
6+
const name = file.replace(/^src\//, '').replace(/\.tsx?$/, '');
77

88
acc[name] = file;
99

@@ -14,13 +14,13 @@ export default defineConfig([
1414
{
1515
...TsupOptions,
1616
entry
17-
},
18-
{
17+
}
18+
/*{
1919
...TsupOptions,
2020
entry: {
2121
'base/index': 'src/base/index.ts'
2222
}
23-
}
23+
}*/
2424
/*{
2525
...TsupOptions,
2626
entry: {

0 commit comments

Comments
 (0)