mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
* fix: consider exclude patterns when determining LLB merge eligibility * test mise config example * update snapshots * test: allow stderr in mise-config integration test npm outputs deprecation warning to stderr
16 lines
463 B
TypeScript
16 lines
463 B
TypeScript
import { execSync } from "child_process";
|
|
|
|
function printVersion(cmd: string, label: string) {
|
|
try {
|
|
const version = execSync(cmd, { encoding: "utf8" }).trim();
|
|
console.log(`${label} version: ${version}`);
|
|
} catch (err) {
|
|
throw new Error(`Failed to get ${label} version: ${err}`);
|
|
}
|
|
}
|
|
|
|
printVersion("node --version", "Node.js");
|
|
printVersion("bun --version", "Bun");
|
|
printVersion("python --version", "Python");
|
|
printVersion("go version", "Go");
|