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:
Paul Gschwendtner
2022-05-17 08:23:09 +00:00
committed by Alex Rickabaugh
parent d869ede818
commit bd91572986
3 changed files with 487 additions and 893 deletions
-1
View File
@@ -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);