Detect the framework by reading the project's own package.jsondependencies, devDependencies, and peerDependencies.
This intentionally does NOT use node_modules resolution (e.g.
isPackageExists from local-pkg) because that approach picks up
transitive and peer dependencies installed by other packages — leading
to false positives (e.g. a Vite SPA being detected as Next.js because
another package declares next as a peer dep).
Detect the framework by reading the project's own
package.jsondependencies,devDependencies, andpeerDependencies.This intentionally does NOT use node_modules resolution (e.g.
isPackageExistsfromlocal-pkg) because that approach picks up transitive and peer dependencies installed by other packages — leading to false positives (e.g. a Vite SPA being detected as Next.js because another package declaresnextas a peer dep).