altv-pkg
Advanced tools
Comparing version 2.0.0 to 2.0.1
#!/usr/bin/env node | ||
const yargs = require('yargs/yargs')(); | ||
const fs = require('fs'); | ||
@@ -8,21 +7,33 @@ const path = require('path'); | ||
const args = process.argv | ||
const platform = process.platform == 'win32' ? 'x64_win32' : 'x64_linux'; | ||
const rootPath = process.cwd(); | ||
let branch = 'release' | ||
let branch = null; | ||
yargs.usage(`Usage: altv-pkg [release/rc/dev]`) | ||
yargs.command('release', 'Download altest release files', { alias: 'd' }, () => { | ||
branch = 'release'; | ||
}); | ||
yargs.command('rc', 'Download altest rc files', { alias: 'rc' }, () => { | ||
branch = 'rc'; | ||
}); | ||
for (let i = 0; i < args.length; i++) { | ||
if (args[i] === 'release') { | ||
branch = 'release'; | ||
break; | ||
} | ||
yargs.command('dev', 'Download altest dev files', { alias: 'dev' }, () => { | ||
branch = 'dev'; | ||
}); | ||
if (args[i] === 'rc') { | ||
branch = 'rc'; | ||
break; | ||
} | ||
if (args[i] === 'dev') { | ||
branch = 'dev'; | ||
break; | ||
} | ||
} | ||
if (!branch) { | ||
console.log(chalk.redBright('Please specify a branch: release, rc, or dev. \r\nExample:\r')); | ||
console.log(chalk.green('npx altv-pkg release')); | ||
process.exit(0) | ||
} | ||
async function start() { | ||
@@ -88,8 +99,4 @@ console.log(chalk.greenBright('===== altv-pkg =====')); | ||
console.log(chalk.greenBright('===== Complete =====')); | ||
} | ||
start(); | ||
start(); |
{ | ||
"name": "altv-pkg", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Install alt:V Binaries Quickly", | ||
@@ -13,4 +13,3 @@ "main": "bin/index.js", | ||
"axios": "^0.26.1", | ||
"chalk": "^4.1.0", | ||
"yargs": "^17.4.1" | ||
"chalk": "^4.1.0" | ||
}, | ||
@@ -17,0 +16,0 @@ "prettier": { |
# altv-pkg | ||
![](https://i.imgur.com/XgO9FzQ.png) | ||
Download server binaries quickly and easily for [alt:V Servers](https://altv.mp). | ||
@@ -4,0 +6,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
40419
2
79
26
0
- Removedyargs@^17.4.1
- Removedansi-regex@5.0.1(transitive)
- Removedcliui@8.0.1(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedescalade@3.1.2(transitive)
- Removedget-caller-file@2.0.5(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedrequire-directory@2.1.1(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedwrap-ansi@7.0.0(transitive)
- Removedy18n@5.0.8(transitive)
- Removedyargs@17.7.2(transitive)
- Removedyargs-parser@21.1.1(transitive)