(id: string)
| 28 | const __dirname = path.resolve(fileURLToPath(import.meta.url), ".."); |
| 29 | |
| 30 | const dynamicImport = async <T>(id: string): Promise<T> => { |
| 31 | const imported = await import(path.isAbsolute(id) ? pathToFileURL(id).toString() : id); |
| 32 | return ("default" in imported && imported.default) || imported; |
| 33 | }; |
| 34 | |
| 35 | const pkg: typeof import("../package.json") = require("../package.json"); |
| 36 |