MCPcopy Index your code
hub / github.com/less/less.js / resolveSemverPath

Function resolveSemverPath

scripts/test-release-automation.js:55–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53// ---------------------------------------------------------------------------
54
55function resolveSemverPath() {
56 const candidates = [
57 path.join(ROOT_DIR, 'node_modules', 'semver'),
58 '/tmp/test-deps/node_modules/semver',
59 ];
60 for (const c of candidates) {
61 if (fs.existsSync(c)) return c;
62 }
63 return null;
64}
65
66const SEMVER_PATH = resolveSemverPath();
67

Callers 1

Calls 1

joinMethod · 0.65

Tested by

no test coverage detected