(path: string)
| 392 | } |
| 393 | |
| 394 | const scriptOf = (path: string): string | undefined => |
| 395 | [ |
| 396 | path, |
| 397 | path.replace(/\.([cm]?)js(x?)$/, ".$1ts$2"), |
| 398 | ...scriptExtensions.flatMap(extension => [ |
| 399 | path + extension, |
| 400 | resolve(path, `index${extension}`) |
| 401 | ]) |
| 402 | ].find(candidate => statSync(candidate, { throwIfNoEntry: false })?.isFile()) |
| 403 | |
| 404 | export const countOf = (n: number, noun: string): string => |
| 405 | `${n} ${noun}${n === 1 ? "" : "s"}` |
no test coverage detected