Comparing version 1.0.2 to 1.0.3
@@ -0,0 +0,0 @@ #!/usr/bin/env node |
@@ -7,7 +7,7 @@ const fs = require('fs'); | ||
{ | ||
fullPath: path.join('./', 'package.json'), | ||
fullPath: 'package.json', | ||
error: `Could not find package.json in local directory. Initialize your directory with 'npm init' to continue.`, | ||
}, | ||
{ | ||
fullPath: path.join('./', 'altv-server'), | ||
fullPath: 'altv-server', | ||
error: `Could not find 'altv-server' in local directory. Please download alt:V Server files first.`, | ||
@@ -24,6 +24,9 @@ }, | ||
const files = fs.readdirSync('.'); | ||
for (let i = 0; i < pathsToCheck.length; i++) { | ||
const pathData = pathsToCheck[i]; | ||
if (!fs.existsSync(pathData.fullPath)) { | ||
logDanger(pathData.error); | ||
const matchIndex = files.findIndex((file) => file.includes(pathData.fullPath)); | ||
if (matchIndex <= -1) { | ||
return false; | ||
@@ -30,0 +33,0 @@ } |
{ | ||
"name": "altv-pkg", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A CLI tool for installing open source resourced and their dependencies.", | ||
@@ -5,0 +5,0 @@ "main": "bin/index.js", |
@@ -1,5 +0,5 @@ | ||
# alt:V Resource Installer | ||
# alt:V PKG | ||
<p align="center"> | ||
<img width="600px" height="175" src="https://thumbs.gfycat.com/MildSecondhandIndigobunting-size_restricted.gif" /> | ||
<img width="500px" src="https://thumbs.gfycat.com/MildSecondhandIndigobunting-size_restricted.gif" /> | ||
</p> | ||
@@ -15,9 +15,9 @@ | ||
Find resources on [alt:V Hub](https://hub.altv.mp) | ||
[Find resources on alt:V Hub](https://hub.altv.mp) | ||
Visit the official [alt:V GTA:V Client Website](https://altv.mp) | ||
[Visit the official alt:V GTA:V Client Website](https://altv.mp) | ||
Check out alt:V's other [repositories](https://github.com/altmp/) | ||
[❤️ Become a Sponsor of my Open Source Work](https://github.com/sponsors/Stuyk/) | ||
Check out my [repositories](https://github.com/stuyk) | ||
[⌨️ Learn how to script for alt:V](https://stuyk.github.io/altv-javascript-guide/) | ||
@@ -38,2 +38,14 @@ ⭐ This repository if you found it useful! | ||
**Powershell Users** | ||
If you have issues running the altv-pkg command. | ||
Simply run the following to unblock powershell from running scripts. | ||
Ensure you use powershell with **administrative** permission. | ||
``` | ||
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force; | ||
``` | ||
## Download Server Files with Command Line | ||
@@ -40,0 +52,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59272
436
164