Lines 61-101javascript
61exports.INSTALL_SH_URL = exports.NPM_PACKAGE = exports.REPO = void 0;
62exports.deriveInstallDir = deriveInstallDir;
63exports.detectInstallMethod = detectInstallMethod;
64exports.parseSemver = parseSemver;
65exports.compareVersions = compareVersions;
66exports.isUpdateAvailable = isUpdateAvailable;
67exports.normalizeVersion = normalizeVersion;
68exports.stripV = stripV;
69exports.parseLatestTagFromLocation = parseLatestTagFromLocation;
70exports.resolveLatestVersion = resolveLatestVersion;
71exports.reindexAdvisory = reindexAdvisory;
72exports.runUpgrade = runUpgrade;
73exports.verifyResolvedVersion = verifyResolvedVersion;
74exports.buildWindowsUpgradeScript = buildWindowsUpgradeScript;
75exports.npmInvocation = npmInvocation;
76exports.hasCommand = hasCommand;
77exports.defaultRun = defaultRun;
78exports.defaultCapture = defaultCapture;
79const fs = __importStar(require("fs"));
80const path = __importStar(require("path"));
81const https = __importStar(require("https"));
82const child_process_1 = require("child_process");
83exports.REPO = 'colbymchenry/codegraph';
HighChild Process
Package source references child process execution.
dist/upgrade/index.jsView on unpkg · L81 84exports.NPM_PACKAGE = '@colbymchenry/codegraph';
85const RAW_BASE = `https://raw.githubusercontent.com/${exports.REPO}/main`;
86exports.INSTALL_SH_URL = `${RAW_BASE}/install.sh`;
88 return p.replace(/\\/g, '/');
91 * Where the bundle installer keeps its install root, derived from the bundle
92 * dir so an upgrade reuses a custom `CODEGRAPH_INSTALL_DIR`. Returns null when
93 * the layout isn't the one the installer creates (then the installer falls
94 * back to its own default).
96 * unix: <installDir>/versions/<vX.Y.Z> (bundleRoot) → <installDir>
97 * windows: <installDir>\current (bundleRoot) → <installDir>
99function deriveInstallDir(bundleRoot, os, exists) {
100 // Use the TARGET platform's path semantics (not the host's), so this is
101 // deterministic when reasoning about a Windows layout from a POSIX host (CI)