@netlify/framework-info
Advanced tools
Comparing version 9.7.0 to 9.7.1
{ | ||
"name": "@netlify/framework-info", | ||
"version": "9.7.0", | ||
"version": "9.7.1", | ||
"description": "Framework detection utility", | ||
@@ -96,3 +96,3 @@ "type": "module", | ||
}, | ||
"gitHead": "fb15bd56d47418bc03b2e94fc87de89d3e18a7a9" | ||
"gitHead": "7dcf167e961cce8075b96b894bf90156b03dbaf3" | ||
} |
@@ -66,2 +66,7 @@ import { join } from 'path' | ||
const installedFrameworkPath = await findUp(join('node_modules', npmPackage, 'package.json'), { cwd: projectDir }) | ||
if (!installedFrameworkPath) { | ||
return frameworkInfo | ||
} | ||
const { packageJson } = await getPackageJson(installedFrameworkPath) | ||
@@ -73,3 +78,3 @@ | ||
name: npmPackage, | ||
version: packageJson.version || 'unknown', | ||
version: packageJson?.version || 'unknown', | ||
}, | ||
@@ -76,0 +81,0 @@ } |
259799
2969