From 7e4af7f9a6f4b493d65f3cea5ad35718b7265c2f Mon Sep 17 00:00:00 2001 From: Jake Ginnivan Date: Tue, 8 Feb 2022 17:31:28 +0800 Subject: [PATCH] Export tagExists function --- packages/git/src/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/git/src/index.ts b/packages/git/src/index.ts index 06641b399..43d1fddbe 100644 --- a/packages/git/src/index.ts +++ b/packages/git/src/index.ts @@ -268,11 +268,10 @@ export async function getChangedPackagesSinceRef({ .filter((pkg, idx, packages) => packages.indexOf(pkg) === idx) ); } -async function tagExists(tagStr: string) { + +export async function tagExists(tagStr: string) { const gitCmd = await spawn("git", ["tag", "-l", tagStr]); const output = gitCmd.stdout.toString().trim(); const tagExists = !!output; return tagExists; } - - tagExists,