mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(ngcc): rename EntryPoint#package to EntryPoint#packagePath (#37040)
Rename the `package` property to `packagePath` on the `EntryPoint` interface. This makes it more clear that the `packagePath` property holds the absolute path to the containing package (similar to how `path` holds the path to the entry-point). This will also align with the `packageName` property that will be added in a subsequent commit. This commit also re-orders the `EntryPoint` properties to group related properties together and to match the order of properties on instances with that on the interface. PR Close #37040
This commit is contained in:
committed by
Misko Hevery
parent
e7a0e87c41
commit
8197557fcf
@@ -58,7 +58,7 @@ export class DecorationAnalyzer {
|
||||
private host = this.bundle.src.host;
|
||||
private typeChecker = this.bundle.src.program.getTypeChecker();
|
||||
private rootDirs = this.bundle.rootDirs;
|
||||
private packagePath = this.bundle.entryPoint.package;
|
||||
private packagePath = this.bundle.entryPoint.packagePath;
|
||||
private isCore = this.bundle.isCore;
|
||||
private compilerOptions = this.tsConfig !== null ? this.tsConfig.options : {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user