(root: string)
| 233 | } |
| 234 | |
| 235 | function resolveRoot(root: string) { |
| 236 | if (root.startsWith("file://")) { |
| 237 | const file = fileURLToPath(root) |
| 238 | if (root.endsWith("/")) return file |
| 239 | return path.dirname(file) |
| 240 | } |
| 241 | if (path.isAbsolute(root)) return root |
| 242 | return path.resolve(process.cwd(), root) |
| 243 | } |
| 244 | |
| 245 | function createThemeInstaller( |
| 246 | meta: ConfigPlugin.Origin, |
no test coverage detected