In install script, expect 'v' prefix in release name

This commit is contained in:
Max Brunsfeld 2021-02-11 16:39:34 -08:00
parent 894357d1d1
commit 86814ee4d7

View file

@ -24,7 +24,7 @@ if (!archName) {
throw new Error(`Cannot install tree-sitter-cli for architecture ${process.arch}`);
}
const releaseURL = `https://github.com/tree-sitter/tree-sitter/releases/download/${packageJSON.version}`;
const releaseURL = `https://github.com/tree-sitter/tree-sitter/releases/download/v${packageJSON.version}`;
const assetName = `tree-sitter-${platformName}-${archName}.gz`;
const assetURL = `${releaseURL}/${assetName}`;