Skip to content

Commit 7d3005d

Browse files
committed
fix building again
1 parent ce7d174 commit 7d3005d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/generate-plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ const nodeProvider: PluginDiscoveryProvider = async () => {
5151
const dir = path.join(process.cwd(), 'src/plugins')
5252
const files = await fs.readdir(dir, { recursive: true })
5353

54-
const mods: Record<string, () => Promise<PluginModule>> = {}
54+
const mods: Record<string, PluginModule> = {}
5555
for (const file of files) {
5656
if (file.endsWith('.ts')) {
57-
mods[file] = () => import(path.join(dir, file))
57+
mods[file] = await import(path.join(dir, file))
5858
}
5959
}
6060
return mods

tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515

1616
"module": "ESNext",
1717
"moduleResolution": "Bundler",
18-
"types": ["node"]
18+
"types": ["node", "vite/client"]
1919
}
2020
}

0 commit comments

Comments
 (0)