(fileName: string)
| 392 | } |
| 393 | |
| 394 | function removeExtension(fileName: string) { |
| 395 | return fileName.substring(0, fileName.lastIndexOf('.')); |
| 396 | } |
| 397 | |
| 398 | const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); |
| 399 | const root = path.resolve(__dirname, '..'); |