Resolve a command directory for a sanitized PATH that still works cross-platform.
(command: string)
| 60 | |
| 61 | /** Resolve a command directory for a sanitized PATH that still works cross-platform. */ |
| 62 | function commandDirectory(command: string) { |
| 63 | return path.dirname(commandPath(command)); |
| 64 | } |
| 65 | |
| 66 | const repoRoot = path.resolve(import.meta.dir, ".."); |
| 67 | const packageVersion = JSON.parse(await Bun.file(path.join(repoRoot, "package.json")).text()) |
no test coverage detected