vaderjs 1.4.1-hyguy47 → 1.4.1-ui7iuy47

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.
Files changed (2) hide show
  1. package/binaries/main.js +20 -11
  2. package/package.json +5 -5
package/binaries/main.js CHANGED
@@ -6,6 +6,8 @@ import * as Bun from "bun";
6
6
 
7
7
  import WebSocket from "ws";
8
8
 
9
+ console.log(process.cwd() + '/vader.config.js')
10
+
9
11
  let config = await import(process.cwd() + '/vader.config.js').then((m) => m ? m.default : {}).catch((e) => {
10
12
 
11
13
  console.error(e)
@@ -583,10 +585,10 @@ globalThis.context = {
583
585
  */
584
586
 
585
587
  function handleIntegrations() {
586
-
588
+
587
589
  if (config?.integrations) {
588
590
 
589
- config.integrations.forEach((integration) => {
591
+ config.integrations.forEach((integration) => {
590
592
 
591
593
  let int = integration
592
594
 
@@ -994,7 +996,7 @@ async function transForm() {
994
996
 
995
997
  write(process.cwd() + '/dist/public/' + file.split('public/').pop(), data);
996
998
 
997
- bundleSize += fs.statSync(process.cwd() + '/dist/public/' + file.split('public/').pop()).size
999
+ bundleSize += fs.existsSync(process.cwd() + '/dist/public/' + file.split('public/').pop()) ? fs.statSync(process.cwd() + '/dist/public/' + file.split('public/').pop()).size : 0
998
1000
 
999
1001
  }
1000
1002
 
@@ -1225,9 +1227,9 @@ switch (true) {
1225
1227
  })
1226
1228
 
1227
1229
  async function runOnChange() {
1228
-
1230
+
1229
1231
  for (var ints in integrationStates) {
1230
-
1232
+
1231
1233
  if (integrationStates && integrationStates[ints].on.includes('dev:change')) {
1232
1234
 
1233
1235
  console.log('Starting integration...')
@@ -1236,13 +1238,18 @@ switch (true) {
1236
1238
 
1237
1239
  let { name, version, useRuntime, entryPoint, onAction, doOn } = int
1238
1240
 
1239
- if (globalThis.isBuilding) {
1240
-
1241
- return
1241
+
1242
+ if (globalThis[`isRunning${name}`]) {
1243
+
1244
+ setTimeout(() => {
1245
+ globalThis[`isRunning${name}`] = false
1246
+ }, 1000)
1247
+ return void 0
1242
1248
 
1243
1249
  }
1244
1250
 
1245
- globalThis.isBuilding = true
1251
+ globalThis[`isRunning${name}`] = true
1252
+ console.log(`Using integration: ${name} v${version}`)
1246
1253
 
1247
1254
  Bun.spawn({
1248
1255
 
@@ -1262,13 +1269,15 @@ switch (true) {
1262
1269
 
1263
1270
  globalThis.isBuilding = false
1264
1271
 
1272
+ globalThis[`isRunning${name}`] = false
1273
+
1265
1274
  }
1266
1275
 
1267
1276
  },
1268
1277
 
1269
1278
  cmd: [useRuntime || 'node', entryPoint],
1270
1279
 
1271
- })
1280
+ })
1272
1281
 
1273
1282
 
1274
1283
 
@@ -1430,7 +1439,7 @@ Vader.js v1.3.3
1430
1439
 
1431
1440
  Serving ./dist on port ${port}
1432
1441
 
1433
- url: http://localhost:${port}
1442
+ url: ${config?.host?.prod?.hostname || 'http://localhost'}:${port}
1434
1443
 
1435
1444
  `)
1436
1445
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vaderjs",
3
3
  "description": "A Reactive library aimed to helping you build reactive applications inspired by react.js",
4
4
  "module": "vader.js",
5
- "version": "1.4.1-hyguy47",
5
+ "version": "1.4.1-ui7iuy47",
6
6
  "bin": {
7
7
  "vader": "./vader.js"
8
8
  },
@@ -12,6 +12,7 @@
12
12
  "nextjs",
13
13
  "pages router",
14
14
  "bun.js",
15
+ "severside generation",
15
16
  "spa",
16
17
  "vanillajs",
17
18
  "vanilla js"
@@ -28,9 +29,8 @@
28
29
  "email": "malikwhitterb@gmail.com"
29
30
  },
30
31
  "dependencies": {
31
- "puppeteer":"latest",
32
- "dotenv":"latest",
33
- "prettier": "latest",
34
- "source-map": "latest"
32
+ "playwright": "latest",
33
+ "source-map": "latest",
34
+ "ws": "latest"
35
35
  }
36
36
  }