Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
throw new Error(`Detected a lockfile at location: ${lockFileFullPath}\nHowever the package.json is missing!`);
}
const [manifestFile, lockFile] = await Promise.all([
await fs.readFile(manifestFileFullPath, 'utf-8'),
await fs.readFile(lockFileFullPath, 'utf-8'),
]);
const defaultManifestFileName = path.relative(root, manifestFileFullPath);
const strictOutOfSync = _.get(options, 'strictOutOfSync') !== 'false';
return await buildDepTree(
manifestFile,
lockFile,
options.dev,
LockfileType.npm,
strictOutOfSync,
defaultManifestFileName,
);
}