Skip to content

Commit

Permalink
chore: add package.json to first resource article (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady authored Mar 14, 2024
1 parent a7b44a7 commit e7cf0b6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/articles/create-your-first-resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ server/
├── server.toml
```

Before creating an example resource we need to create package.json in the root with the following content so we can use ES6 modules on serverside.
```json
{
"type": "module"
}
```

So in the end our server folder structure should look like this:
```
server/
...
├── altv-server.exe
├── libnode.dll
├── server.toml
├── package.json // <--------- here
```

Let's create an example resource.

```
Expand Down

0 comments on commit e7cf0b6

Please sign in to comment.