feat: require Node.js >=10.13

BREAKING CHANGE: Require Node.js >= 10.13
This commit is contained in:
Pierre Vanduynslager
2019-12-05 13:18:42 -05:00
parent 916c2685c5
commit 0716a45b7d
12 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ export async function gitRemoteTagHead(repositoryUrl, tagName, execaOpts) {
return (await execa('git', ['ls-remote', '--tags', repositoryUrl, tagName], execaOpts)).stdout
.split('\n')
.filter(tag => Boolean(tag))
.map(tag => tag.match(/^(\S+)/)[1])[0];
.map(tag => tag.match(/^(?<tag>\S+)/)[1])[0];
}
/**