(packageName)
| 1112 | } |
| 1113 | |
| 1114 | function globalPackageRoot(packageName) { |
| 1115 | const result = run("npm", ["root", "-g"], { timeoutMs: 10000 }); |
| 1116 | if (!result.ok) { |
| 1117 | throw new Error("Could not resolve global npm root for Argent."); |
| 1118 | } |
| 1119 | return path.join(result.stdout.trim(), packageName); |
| 1120 | } |
| 1121 | |
| 1122 | function assertBinary(filePath, hint) { |
| 1123 | const result = spawnSync(filePath, ["--version"], { |
no test coverage detected