Skip to content

Commit 083ef3d

Browse files
committed
fix build
1 parent c98b464 commit 083ef3d

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

packages/shared/src/pathToRegexp.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export const pathToRegexp = (path: string) => {
1919
}
2020
};
2121

22+
/**
23+
*
24+
*/
2225
export function match<P extends object = object>(
2326
str: Path,
2427
options?: ParseOptions & TokensToRegexpOptions & RegexpToFunctionOptions,
@@ -32,3 +35,5 @@ export function match<P extends object = object>(
3235
);
3336
}
3437
}
38+
39+
export { type Match, type MatchFunction };

packages/shared/tsdown.config.mts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,26 @@ export default defineConfig(({ watch }) => {
2525
return [
2626
{
2727
...common,
28-
entry: ['./src/types/index.ts'],
28+
entry: [
29+
//
30+
'./src/types/index.ts',
31+
],
2932
unbundle: false,
3033
outDir: './dist/types',
3134
},
3235
{
3336
...common,
3437
entry: [
35-
// all files except types
3638
'./src/*.{ts,tsx}',
37-
'./src/**/index.{ts,tsx}',
38-
// '!./src/types/*.{ts,tsx}',
39+
'./src/react/index.ts',
40+
'./src/utils/index.ts',
41+
'./src/workerTimers/index.ts',
42+
'./src/types/index.ts',
43+
'./src/dom/*.ts',
3944
'!./src/**/*.{test,spec}.{ts,tsx}',
4045
],
4146
outDir: './dist/runtime',
42-
unbundle: false,
47+
unbundle: true,
4348
},
4449
];
4550
});

0 commit comments

Comments
 (0)