mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: lock file maintenance to avoid node module differences for babel types (#45967)
We recently updated Babel and the Bazel types but this actually resulted in duplicates, causing differences between what people seen in their IDE vs. what Bazel builds. This commit removes the lock file and generates it fully fresh, deduping dependencies and also fixing the differences between local IDE and Bazel. As part of this we also need to update/fixup one assertion on the Babel node path types, because the node start/end can now also be `undefined`. PR Close #45967
This commit is contained in:
committed by
Alex Rickabaugh
parent
d869ede818
commit
bd91572986
@@ -23,7 +23,6 @@ type CompilerCliModule =
|
||||
// Add devmode for blaze internal
|
||||
interface BazelOptions extends ExternalBazelOptions {
|
||||
allowedInputs?: string[];
|
||||
devmode?: boolean;
|
||||
unusedInputsListPath?: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -463,7 +463,7 @@ function getLineAndColumn(loc: {line: number, column: number}): {line: number, c
|
||||
}
|
||||
|
||||
function getText(path: NodePath): string|undefined {
|
||||
if (path.node.start === null || path.node.end === null) {
|
||||
if (path.node.start == null || path.node.end == null) {
|
||||
return undefined;
|
||||
}
|
||||
return path.hub.file.code.substring(path.node.start, path.node.end);
|
||||
|
||||
Reference in New Issue
Block a user