astro-ghostcms/.pnpm-store/v3/files/83/6136994053eab1435412219a302...

27 lines
818 B
Plaintext

import { relative } from 'pathe';
import 'std-env';
import '@vitest/runner/utils';
import '@vitest/utils';
import { g as getWorkerState } from './global.CkGT_TMy.js';
var _a;
const isNode = typeof process < "u" && typeof process.stdout < "u" && !((_a = process.versions) == null ? void 0 : _a.deno) && !globalThis.window;
const isWindows = isNode && process.platform === "win32";
function getRunMode() {
return getWorkerState().config.mode;
}
function isRunningInBenchmark() {
return getRunMode() === "benchmark";
}
const relativePath = relative;
function removeUndefinedValues(obj) {
for (const key in Object.keys(obj)) {
if (obj[key] === void 0)
delete obj[key];
}
return obj;
}
export { isWindows as a, isNode as b, relativePath as c, isRunningInBenchmark as i, removeUndefinedValues as r };