Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ng-dev/misc/sync-module-bazel/sync-module-bazel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ async function processNodeToolchainArgs(
return args;
}

if (!semver.valid(effectiveVersion)) {
throw new Error(`Invalid Node.js version: ${effectiveVersion}`);
}
Comment thread
josephperrott marked this conversation as resolved.
Outdated

Log.info(`Resolving Node.js repositories for v${effectiveVersion}...`);
const repositories = await getNodeJsRepositories(effectiveVersion);
const lines = repositories.map(({filename, sha, type}) => {
Expand Down