Skip to content

Commit c379357

Browse files
committed
Rollback to classic export
1 parent fcde2b1 commit c379357

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Header/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
export * from "./Header";
1+
export type { HeaderProps } from "./Header";
2+
import { Header, addHeaderTranslations } from "./Header";
23

3-
import { Header } from "./Header";
4+
export { Header, addHeaderTranslations };
45

56
export default Header;

src/scripts/list-exports.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ const newExports = {
3939

4040
if (fs.lstatSync(path).isDirectory()) {
4141
for (const ext of [".ts", ".tsx"] as const) {
42-
//const relativePath = pathJoin(basename, `index${ext}`);
43-
const relativePath = pathJoin(basename, `${basename}${ext}`);
42+
const relativePath = pathJoin(basename, `index${ext}`);
4443

4544
if (!fs.existsSync(pathJoin(srcDirPath, relativePath))) {
4645
continue;

0 commit comments

Comments
 (0)