From 0ae5f09b1f6f1eb6fe2c918026cc0c8be3343180 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 1 Mar 2024 00:52:53 +0800 Subject: [PATCH] fix: routes import error in node 20 --- lib/routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes.ts b/lib/routes.ts index 4c5406130..d43706f7b 100644 --- a/lib/routes.ts +++ b/lib/routes.ts @@ -11,7 +11,7 @@ type Root = { }; const imports = directoryImport({ - targetDirectoryPath: './v2', + targetDirectoryPath: path.join(__dirname, './v2'), importPattern: /router\.js$/, });