18import yaml from 'js-yaml';
19import { execFile, execFileSync } from 'node:child_process';
20import { readFileSync } from 'node:fs';
⋯
27import { shutdownPostHog } from './telemetry/client.js';
28export const CMD_EXEC_PATH = process.cwd();
29export const checkPort = (argv) => __awaiter(void 0, void 0, void 0, function* () {
⋯
137try {
138 const pkgPath = require.resolve(`${packageName}/package.json`);
139 const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));
140 return typeof pkg.version === 'string' ? pkg.version : undefined;
⋯
147var _a;
148if (packageName === void 0) { packageName = (_a = process.env.MINTLIFY_PACKAGE_NAME) !== null && _a !== void 0 ? _a : 'mint'; }