virrun 2.32.0 → 2.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -4
- package/dist/mainCommand-CNii8Hw2.js +26790 -0
- package/package.json +5 -5
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3018,7 +3018,7 @@ declare const isVirrunEnabled: (env: NodeJS.ProcessEnv) => boolean;
|
|
|
3018
3018
|
declare const parseVirrunConfiguration: (content: string) => VirrunConfiguration;
|
|
3019
3019
|
//#endregion
|
|
3020
3020
|
//#region src/services/configuration/resolveBackend.d.ts
|
|
3021
|
-
declare const resolveBackend: (configuration: undefined | VirrunConfiguration) => BackendType;
|
|
3021
|
+
declare const resolveBackend: (configuration: undefined | VirrunConfiguration, env?: NodeJS.ProcessEnv) => BackendType;
|
|
3022
3022
|
//#endregion
|
|
3023
3023
|
//#region src/services/configuration/resolveVirrunConfiguration.d.ts
|
|
3024
3024
|
declare const resolveVirrunConfiguration: (cwd?: string) => undefined | VirrunConfiguration;
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { $ as parseOverlayEntryKind, $t as
|
|
1
|
+
import { $ as parseOverlayEntryKind, $t as ACCEPTANCE_CACHE_DIRECTORY_NAME, A as getOsCacheRoot, An as SETUP_COMMAND_WIN32, At as probeOsBackendChecks, B as parseBwrapStderrStatus, Bt as formatDoctorReport, C as createSnapshot, Cn as VIRRUN_STORE_DIRECTORY_NAME, Ct as formatVirrunResult, D as readWslLoginPath, Dn as OVERLAY_APPLY_SCRIPT, Dt as ExecutionMode, E as createOsExecOptions, En as readWslPath, Et as BackendType, F as createWslEnvArgs, Fn as SOURCE_TREE_HASH_MAX_BUFFER, Ft as capabilityCacheSchema, G as createNativeBackend, Gt as formatCacheListing, H as createStderrLiveWriter, Ht as DiagnosticCheckType, I as createWslBwrapArgs, In as TASK_CACHE_META_FILENAME, It as getCapabilityCacheKey, J as persistWithCache, Jt as getRepoCacheDirectory, K as toExitCode, Kt as cacheCleanCommand, L as buildWslReapCommand, Ln as TASK_CACHE_PAYLOAD_DIRECTORY_NAME, Lt as buildBwrapArgs, M as createWslOsBackend, Mn as VIRRUN_SNAPSHOT_UPPER_DIRECTORY_NAME, Mt as isOsBackendSupported, N as createWslProcessMarker, Nn as VIRRUN_SNAPSHOT_WORK_DIRECTORY_NAME, Nt as writeCapabilityCache, O as dayjs, On as OVERLAY_PROBE_SCRIPT, Ot as doctorCommand, P as VIRRUN_WSL_PROCESS_MARKER, Pn as WINDOWS_VIRTUAL_STORE_DIR_MAX_LENGTH, Pt as readCapabilityCache, Q as overlayManifestEntrySchema, Qt as getWslNativeCacheRoot, R as createLinuxOsBackend, Rn as VIRRUN_TASKS_DIRECTORY_NAME, Rt as isVersionAtLeast, S as forkSnapshot, Sn as VIRRUN_SCHEMA_RELATIVE_PATH, St as isVirrunEnabled, T as createOsInstallOptions, Tn as removeSnapshotDirectory, Tt as formatVirrunBanner, U as WSL_BWRAP_STATUS_BEGIN, Ut as cacheCommand, V as parseBwrapExitCode, Vt as DiagnosticStatus, W as WSL_BWRAP_STATUS_END, Wt as cacheLsCommand, X as buildHostFlushPlan, Xt as resolveCwd, Y as persistRun, Yt as resolveWorkspaceRoot, Z as parseOverlayManifest, Zt as getGlobalCacheDirectory, _ as createPlatformaticFsProvider, _n as VIRRUN_ENV_KEY, _t as computeLockfileHash, a as initCommand, an as HOME_CACHE_DIRECTORY_NAME, at as taskCacheEntrySchema, b as tokenizeShellCommand, bn as VIRRUN_NO_CACHE_KEY, bt as virrunConfigurationSchema, c as runPassthrough, cn as PNPM_CONFIG_PACKAGE_IMPORT_METHOD_KEY, ct as runOverlayScript, d as loadSource, dn as PNPM_LOCKFILE_FILENAME, dt as isTaskCacheEnabled, en as CAPABILITY_CACHE_FILENAME, et as isUnderSnapshotLower, f as loadGitSource, fn as PNPM_WORKSPACE_FILENAME, ft as computeTaskCacheKey, g as runNodeInProcess, gn as VIRRUN_COREPACK_STORE_DIRECTORY_NAME, gt as resolveSnapshotLocation, h as createVfsBackend, hn as VIRRUN_CONFIGURATION_FILENAME, ht as SourceType, i as runCommand, in as GITIGNORE_FILENAME, it as parseTaskCacheEntry, j as createOsBackend, jn as VIRRUN_SNAPSHOTS_DIRECTORY_NAME, jt as buildWslLoginShellCommand, k as createSharedPackageStoreOptions, kn as SETUP_COMMAND_LINUX, kt as runDoctor, l as runVirrunCommand, ln as PNPM_CONFIG_PACKAGE_IMPORT_METHOD_VALUE, lt as resolveTaskCacheLocation, m as loadDirSource, mn as VIRRUN_CACHE_HOME_KEY, mt as formatVirrunCacheHit, n as snapshotCommand, nn as CI_ENV_VALUE, nt as OverlayEntryKind, o as buildVirrunConfigurationContent, on as NODE_MODULES_DIRECTORY, ot as recordTaskCache, p as loadFilesSource, pn as VIRRUN_CACHE_DIRECTORY_NAME, pt as computeSourceTreeHash, q as forwardTerminationSignals, r as warmSnapshot, rn as COREPACK_HOME_KEY, rt as replayTaskCache, s as execCommand, sn as PACKAGE_JSON_FILENAME, st as applyFlushPlan, t as mainCommand, tn as CI_ENV_KEY, tt as buildFlushPlan, u as createVirrun, un as PNPM_CONFIG_STORE_DIR_KEY, ut as FlushOpType, v as ExitSignalError, vn as VIRRUN_FORCE_PROBE_KEY, vt as resolveVirrunConfiguration, w as pruneSnapshotUpper, wn as VIRRUN_TEMP_DIR_PREFIX, wt as formatVirrunProvisioning, x as resolveSetupCommand, xn as VIRRUN_PNPM_STORE_DIRECTORY_NAME, xt as resolveBackend, y as parseNodeInvocation, yn as VIRRUN_GITIGNORE_ENTRY, yt as parseVirrunConfiguration, z as createBwrapBackend, zn as CommandType, zt as getDoctorExitCode } from "./mainCommand-CNii8Hw2.js";
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
|
-
//#region src/services/configuration/isVirrunEnabled.ts
|
|
5
|
-
const isVirrunEnabled = (env) => env[VIRRUN_ENV_KEY]?.trim().toLowerCase() === "true";
|
|
6
|
-
//#endregion
|
|
7
4
|
//#region src/services/exec/differential/normalizeExecResult.ts
|
|
8
5
|
const normalizeExecResult = (result, rules) => {
|
|
9
6
|
const applyRules = (text) => rules.reduce((accumulated, { pattern, placeholder }) => accumulated.replaceAll(pattern, placeholder), text);
|