fix(ngcc): do not write entry-point manifest outside node_modules (#36299)

Fixes #36296

PR Close #36299
This commit is contained in:
Pete Bacon Darwin
2020-03-28 17:32:15 +00:00
committed by Alex Rickabaugh
parent 5ac308060d
commit c6dd900f60
3 changed files with 37 additions and 6 deletions

View File

@ -99,6 +99,10 @@ export class EntryPointManifest {
* @param entryPoints A collection of entry-points to record in the manifest.
*/
writeEntryPointManifest(basePath: AbsoluteFsPath, entryPoints: EntryPoint[]): void {
if (this.fs.basename(basePath) !== 'node_modules') {
return;
}
const lockFileHash = this.computeLockFileHash(basePath);
if (lockFileHash === null) {
return;