Skip to content

Commit

Permalink
feat: pass ts type check
Browse files Browse the repository at this point in the history
Signed-off-by: suzhou <suzhou@amazon.com>
  • Loading branch information
SuZhou-Joe committed Mar 3, 2023
1 parent b09c3eb commit 8f8521d
Showing 1 changed file with 1 addition and 1 deletion.
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)) {
if (validDocPathsPattern.test(pkg.branch as string)) {
branch = pkg.branch;
} else {
// package version was not parsable and branch is unusable
Expand Down

0 comments on commit 8f8521d

Please sign in to comment.