Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add downgrade logic for branch in DocLinkService #3483

Merged
Prev Previous commit
Next Next commit
Revert "feat: pass ts type check"
This reverts commit 8f8521d.

Signed-off-by: suzhou <suzhou@amazon.com>
  • Loading branch information
SuZhou-Joe committed Mar 21, 2023
commit a6c1f8add74e7c4bdf5b68154bc96e6a07d88815
2 changes: 1 addition & 1 deletion src/dev/build/tasks/create_package_json_task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const CreatePackageJson: Task = {
log.info(`Updating package.branch to ${branch}`);
} else {
const validDocPathsPattern = /^\d+\.\d+$/;
if (validDocPathsPattern.test(pkg.branch as string)) {
if (validDocPathsPattern.test(pkg.branch)) {
branch = pkg.branch;
} else {
// package version was not parsable and branch is unusable
Expand Down