Skip to content

Commit cd51496

Browse files
committed
fix(drizzle): use ESM-compatible path resolution in vitest config
Replace __dirname with import.meta.url since the package uses "type": "module".
1 parent ac3e32c commit cd51496

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/drizzle/vitest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { defineConfig } from 'vitest/config'
2-
import { resolve } from 'node:path'
2+
import { fileURLToPath } from 'node:url'
33

44
export default defineConfig({
55
resolve: {
66
alias: {
7-
'@cipherstash/drizzle/pg': resolve(__dirname, 'src/pg/index.ts'),
7+
'@cipherstash/drizzle/pg': fileURLToPath(new URL('./src/pg/index.ts', import.meta.url)),
88
},
99
},
1010
})

0 commit comments

Comments
 (0)