rebuildjs 0.20.8 → 0.20.11
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/build/index.js +4 -3
- package/package.json +2 -2
- package/server/index.js +1 -1
package/build/index.js
CHANGED
|
@@ -140,9 +140,10 @@ export function rebuildjs__plugin_() {
|
|
|
140
140
|
for (let output__relative_path in outputs) {
|
|
141
141
|
if (/(\.js|\.mjs)(\.map)?$/.test(output__relative_path)) continue
|
|
142
142
|
const asset_path = join(cwd_(app_ctx), output__relative_path)
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
const link_path =
|
|
144
|
+
join(browser_path_(app_ctx), relative(server__relative_path_(app_ctx), output__relative_path))
|
|
145
|
+
await rm(link_path, { force: true })
|
|
146
|
+
await link(asset_path, link_path)
|
|
146
147
|
}
|
|
147
148
|
})
|
|
148
149
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rebuildjs",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.11",
|
|
4
4
|
"description": "Reactive esbuild...simple hackable alternative to vite for Multi Page Apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"reactive",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"ctx-core": "^5.4.1",
|
|
55
|
-
"elysia": "^0.
|
|
55
|
+
"elysia": "^0.8.3",
|
|
56
56
|
"esbuild": "^0.19.10",
|
|
57
57
|
"fdir": "^6.1.1",
|
|
58
58
|
"picomatch": "^3.0.1"
|
package/server/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { file_exists_ } from 'ctx-core/fs'
|
|
2
2
|
import { nullish__none_, tup, waitfor } from 'ctx-core/function'
|
|
3
3
|
import { be_lock_memosig_triple_, be_memo_pair_, be_sig_triple_ } from 'ctx-core/rmemo'
|
|
4
|
-
import { readFile } from 'fs/promises'
|
|
4
|
+
import { readFile } from 'node:fs/promises'
|
|
5
5
|
import { join, relative } from 'path'
|
|
6
6
|
import { cwd_, server__relative_path_, server_path_ } from '../app/index.js'
|
|
7
7
|
export const [
|