fix: routes import error in node 20

This commit is contained in:
DIYgod
2024-03-01 00:52:53 +08:00
parent d35c47e444
commit 0ae5f09b1f
+1 -1
View File
@@ -11,7 +11,7 @@ type Root = {
};
const imports = directoryImport({
targetDirectoryPath: './v2',
targetDirectoryPath: path.join(__dirname, './v2'),
importPattern: /router\.js$/,
});