forked from baron/baron-sso
ci: add code check badges and coverage reports
This commit is contained in:
@@ -8,7 +8,13 @@ import { fileURLToPath } from "node:url";
|
||||
const sdkVersion = "^1.25.0";
|
||||
const zodVersion = "^3.25.0";
|
||||
const cacheRoot = resolveCacheRoot();
|
||||
const sdkMarker = path.join(cacheRoot, "node_modules", "@modelcontextprotocol", "sdk", "package.json");
|
||||
const sdkMarker = path.join(
|
||||
cacheRoot,
|
||||
"node_modules",
|
||||
"@modelcontextprotocol",
|
||||
"sdk",
|
||||
"package.json",
|
||||
);
|
||||
|
||||
if (!existsSync(sdkMarker)) {
|
||||
mkdirSync(cacheRoot, { recursive: true });
|
||||
@@ -65,6 +71,7 @@ function resolveCacheRoot() {
|
||||
return process.env.MCP_ORY_HYDRA_CACHE_DIR;
|
||||
}
|
||||
|
||||
const baseCache = process.env.XDG_CACHE_HOME ?? path.join(homedir(), ".cache");
|
||||
const baseCache =
|
||||
process.env.XDG_CACHE_HOME ?? path.join(homedir(), ".cache");
|
||||
return path.join(baseCache, "mcp-ory-hydra");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user