Skip to content

Commit

Permalink
chore: Make JSv2 module available on all branches
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Sep 18, 2024
1 parent ab245ed commit 6c7d148
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ npx altv-pkg release

Create a `.altvpkgrc.json` file in your root directory and add the following JSON code.

**Note:** The `loadJSV2Module` configuration allows you to include the experimental JavaScript V2 (JSV2) module when downloading binaries. Please be aware that as of the current release, the JSV2 module is exclusively available in the dev branch.
**Note:** The `loadJSV2Module` configuration allows you to include the experimental JavaScript V2 (JSV2) module when downloading binaries.

**Note:** The `loadVoiceServer` configuration allows you to include [external voice server](https://docs.altv.mp/articles/external_voice_server.html) when downloading binaries.

Expand Down
5 changes: 0 additions & 5 deletions bin/altv-pkg.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,6 @@ async function start() {
}

if (loadJSV2Module) {
if (branch != 'dev' && branch != 'rc' && !branch.startsWith('qa')) {
console.log(chalk.redBright('===== JSv2 module is currently only available in dev and rc, skipping ====='));
return;
}

res = await fetchJsonData(`https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_linux/update.json`, {
responseType: 'application/json',
headers,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "altv-pkg",
"version": "2.8.0",
"version": "2.9.0",
"description": "Install alt:V Binaries Quickly",
"main": "bin/index.js",
"author": "Stuyk & alt:V Team",
Expand Down

0 comments on commit 6c7d148

Please sign in to comment.