@omg-dev/vite-plugin 0.4.28 → 0.4.29
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/package.json +3 -3
- package/src/build.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omg-dev/vite-plugin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"build": "vp pack src/index.ts --no-fail-on-warn"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@omg-dev/server": "0.4.
|
|
19
|
-
"@omg-dev/schema": "0.4.
|
|
18
|
+
"@omg-dev/server": "0.4.29",
|
|
19
|
+
"@omg-dev/schema": "0.4.29",
|
|
20
20
|
"ws": "^8.18.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
package/src/build.ts
CHANGED
|
@@ -42,6 +42,15 @@ const root = process.cwd()
|
|
|
42
42
|
const vibesDir = path.join(root, ".vibes")
|
|
43
43
|
const distDir = path.join(root, "dist")
|
|
44
44
|
|
|
45
|
+
// The build is not a runtime. Step 4b (prerender) spins up a nested Vite
|
|
46
|
+
// dev server to SSR the app's root view, which — via the vibes vite-plugin's
|
|
47
|
+
// own configureServer hook — constructs a full createVibesServer instance
|
|
48
|
+
// and registers the app's triggers. Without this flag, a project declaring
|
|
49
|
+
// cron() ends up with live setTimeout chains armed in this process after
|
|
50
|
+
// main() returns, and `vibes-build` never exits even though every artifact
|
|
51
|
+
// was already written (see packages/server/src/triggers.ts registerTriggers).
|
|
52
|
+
process.env.VIBES_BUILD = "1"
|
|
53
|
+
|
|
45
54
|
function log(msg: string) {
|
|
46
55
|
console.log(`[vibes-build] ${msg}`)
|
|
47
56
|
}
|