rebuildjs 0.60.6 → 0.61.2
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 +6 -6
- package/server/build/index.js +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rebuildjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.2",
|
|
4
4
|
"description": "Reactive esbuild...simple hackable alternative to vite for Multi Page Apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"reactive",
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
"./package.json": "./package.json"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"ctx-core": "^6.
|
|
58
|
+
"ctx-core": "^6.2.3",
|
|
59
59
|
"elysia": "^0.8.17",
|
|
60
60
|
"esbuild": "^0.20.0",
|
|
61
61
|
"fdir": "^6.1.1",
|
|
62
62
|
"picomatch": "^4.0.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^7.0.
|
|
66
|
-
"@typescript-eslint/parser": "^7.0.
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
66
|
+
"@typescript-eslint/parser": "^7.0.1",
|
|
67
67
|
"c8": "^9.1.0",
|
|
68
68
|
"check-dts": "^0.7.2",
|
|
69
69
|
"eslint": "^8.56.0",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"build": ":",
|
|
82
82
|
"clean": ":",
|
|
83
83
|
"exec": "$@",
|
|
84
|
-
"test": "pnpm
|
|
84
|
+
"test": "pnpm run /^test:/",
|
|
85
85
|
"test:types": "check-dts",
|
|
86
86
|
"test:unit": "NODE_OPTIONS=--loader=esmock tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
|
|
87
|
-
"test:unit:coverage": "c8 pnpm test:unit"
|
|
87
|
+
"disable:test:unit:coverage": "c8 pnpm test:unit"
|
|
88
88
|
}
|
|
89
89
|
}
|
package/server/build/index.js
CHANGED
|
@@ -75,14 +75,16 @@ export const [
|
|
|
75
75
|
if (metafile__build_id) {
|
|
76
76
|
run(async ()=>{
|
|
77
77
|
try {
|
|
78
|
-
await
|
|
79
|
-
|
|
78
|
+
await Promise.all([
|
|
79
|
+
build_id__match__waitfor(server__metafile_path),
|
|
80
|
+
build_id__match__waitfor(browser__metafile_path),
|
|
81
|
+
])
|
|
80
82
|
persist__metafile__build_id$._ = build_id
|
|
81
83
|
} catch (err) {
|
|
82
84
|
if (err instanceof Cancel) return
|
|
83
85
|
throw err
|
|
84
86
|
}
|
|
85
|
-
})
|
|
87
|
+
}).catch(err=>console.error(err))
|
|
86
88
|
}
|
|
87
89
|
function build_id__match__waitfor(metafile_path) {
|
|
88
90
|
return file_exists__waitfor(async ()=>{
|
|
@@ -94,7 +96,7 @@ export const [
|
|
|
94
96
|
return undefined
|
|
95
97
|
}
|
|
96
98
|
},
|
|
97
|
-
|
|
99
|
+
Infinity,
|
|
98
100
|
cancel__period)
|
|
99
101
|
}
|
|
100
102
|
async function cmd(promise) {
|
|
@@ -478,7 +480,7 @@ export function rebuildjs_plugin_() {
|
|
|
478
480
|
await cmd(
|
|
479
481
|
link(server_asset_path, browser_asset_path))
|
|
480
482
|
return true
|
|
481
|
-
},
|
|
483
|
+
}, Infinity)
|
|
482
484
|
promise_a1.push(file_exists__waitfor(browser_asset_path))
|
|
483
485
|
}
|
|
484
486
|
await cmd(Promise.all(promise_a1))
|