New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

create-fivem-resource

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-fivem-resource - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

demo-cli-1.0.3.gif

3

package.json
{
"name": "create-fivem-resource",
"version": "1.0.4",
"version": "1.0.5",
"license": "MIT",

@@ -13,2 +13,3 @@ "bin": {

"dependencies": {
"chalk": "^4",
"commander": "^12.1.0",

@@ -15,0 +16,0 @@ "inquirer": "^10.1.2",

@@ -21,4 +21,11 @@ <h1 align="center">Create FiveM Resource</h1>

```sh
npx create-fivem-resource my-resource
```
> If you've previously installed `create-fivem-resource` globally via `npm install -g create-fivem-resource`, we recommend you uninstall the package using `npm uninstall -g create-fivem-resource` or `yarn global remove create-fivem-resource` to ensure that `npx` always uses the latest version.
_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/JustinMartinDev/ea57d83b14ae76b0299d242d073b55a5))_
Then start building your resource in watch mode `npm run watch`. After you can start your resource using fivem console
<p align='center'>
<img src='./demo-cli-1.0.3.gif' width='600' alt='create-fivem-resource' />
</p>

@@ -12,2 +12,4 @@ import { join } from "path";

} from "./update";
import { hasPackageJson, installDependencies } from "./install";
import chalk from "chalk";

@@ -34,2 +36,8 @@ export const createFivemResource = async (

try {
console.log(
"Creating a new fivem resource in",
chalk.greenBright(resourceName),
"\n"
);
mkdirSync(projectPath);

@@ -52,2 +60,4 @@

console.log("Template files copied!");
///// UPDATE /////

@@ -73,5 +83,11 @@ console.log("Update package.json...");

removeUnecessaryFiles(projectPath, config);
console.log("Unnecessary files removed!");
rmSync(tmpPath, { recursive: true });
console.log("Unnecessary files removed!\n");
rmSync(tmpPath, { recursive: true });
if (hasPackageJson(projectPath)) {
console.log(
"Installing packages. This might take a couple of minutes.\n"
);
installDependencies(projectPath);
}
} catch (error) {

@@ -78,0 +94,0 @@ console.error("An error occurred while fetching the template", error);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc