@chrisivey01/builder 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -4
package/index.js
CHANGED
|
@@ -35,10 +35,10 @@ export async function build(options = {}) {
|
|
|
35
35
|
const IS_WATCH = args.includes('--watch');
|
|
36
36
|
const IS_REDM = args.includes('--redm');
|
|
37
37
|
const HAS_WEB_DIR = fs.existsSync(resolve(cwd, './web'));
|
|
38
|
-
|
|
38
|
+
const PORT = IS_REDM ? 4700 : 4689;
|
|
39
39
|
// Configuration defaults
|
|
40
40
|
const config = {
|
|
41
|
-
restartEndpoint: options.restartEndpoint ||
|
|
41
|
+
restartEndpoint: options.restartEndpoint || `http://127.0.0.1:${PORT}/rr`,
|
|
42
42
|
restartTimeout: options.restartTimeout || 2000,
|
|
43
43
|
debounceDelay: options.debounceDelay || 500,
|
|
44
44
|
webDevPort: options.webDevPort || 5173,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrisivey01/builder",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Build tool for FiveM/RedM resources with watch mode and auto-restart",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -28,8 +28,5 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"typescript": "^5.9.3"
|
|
30
30
|
},
|
|
31
|
-
"peerDependencies": {
|
|
32
|
-
"esbuild": "^0.20.0"
|
|
33
|
-
},
|
|
34
31
|
"scripts": {}
|
|
35
32
|
}
|