File tree Expand file tree Collapse file tree 3 files changed +32
-7
lines changed Expand file tree Collapse file tree 3 files changed +32
-7
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,11 @@ export * from "./d2.js"
2
2
export * from "./multiset.js"
3
3
export * from "./operators/index.js"
4
4
export * from "./types.js"
5
+
6
+ // Export additional types and functions that are needed
7
+ export type { MultiSetArray } from "./multiset.js"
8
+ export { MultiSet } from "./multiset.js"
9
+ export type { IStreamBuilder , KeyValue } from "./types.js"
10
+ export { RootStreamBuilder } from "./d2.js"
11
+ export { orderByWithFractionalIndex } from "./operators/orderBy.js"
12
+ export type { JoinType } from "./operators/join.js"
Original file line number Diff line number Diff line change 10
10
"esModuleInterop" : true ,
11
11
"skipLibCheck" : true ,
12
12
"forceConsistentCasingInFileNames" : true ,
13
- "jsx" : " react"
13
+ "jsx" : " react" ,
14
+ "paths" : {
15
+ "@tanstack/db" : [" ../db/src" ],
16
+ "@tanstack/db-ivm" : [" ../db-ivm/src" ]
17
+ }
14
18
},
15
19
"include" : [" src" , " tests" , " vite.config.ts" ],
16
20
"exclude" : [" node_modules" , " dist" ]
Original file line number Diff line number Diff line change 1
- import { defineConfig } from "vite"
1
+ import { defineConfig , mergeConfig } from "vitest/config"
2
+ import { tanstackViteConfig } from "@tanstack/config/vite"
3
+ import react from "@vitejs/plugin-react"
4
+ import packageJson from "./package.json"
2
5
3
- export default defineConfig ( {
6
+ const config = defineConfig ( {
7
+ plugins : [ react ( ) ] ,
4
8
test : {
5
- testTimeout : 10000 ,
6
- coverage : {
7
- enabled : false , // Disable coverage to bypass missing coverage provider
8
- } ,
9
+ name : packageJson . name ,
10
+ dir : `./tests` ,
11
+ environment : `jsdom` ,
12
+ coverage : { enabled : true , provider : `istanbul` , include : [ `src/**/*` ] } ,
13
+ typecheck : { enabled : true } ,
9
14
} ,
10
15
} )
16
+
17
+ export default mergeConfig (
18
+ config ,
19
+ tanstackViteConfig ( {
20
+ entry : `./src/index.ts` ,
21
+ srcDir : `./src` ,
22
+ } )
23
+ )
You can’t perform that action at this time.
0 commit comments