@primate/native 0.1.4 → 0.1.5
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/desktop.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primate/native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Primate native applications",
|
|
5
5
|
"homepage": "https://primatejs.com/modules/native",
|
|
6
6
|
"bugs": "https://github.com/primatejs/primate/issues",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@rcompat/cli": "^0.5.1",
|
|
19
|
-
"@rcompat/fs": "^0.5.
|
|
19
|
+
"@rcompat/fs": "^0.5.1",
|
|
20
20
|
"@rcompat/stdio": "^0.5.0",
|
|
21
21
|
"@rcompat/webview": "^0.7.0",
|
|
22
|
-
"@primate/core": "^0.1.
|
|
22
|
+
"@primate/core": "^0.1.7"
|
|
23
23
|
},
|
|
24
24
|
"type": "module",
|
|
25
25
|
"exports": {
|
package/src/desktop.js
CHANGED
|
@@ -28,7 +28,7 @@ export default async app => {
|
|
|
28
28
|
empty: (await file.text()).length === 0,
|
|
29
29
|
};
|
|
30
30
|
}))).filter(file => !file.empty);
|
|
31
|
-
const d = app.runpath(location.pages);
|
|
31
|
+
const d = app.runpath(location.server, location.pages);
|
|
32
32
|
const pages = await Promise.all((await collect(d, html, { recursive: true }))
|
|
33
33
|
.map(async file => `${file}`.replace(`${d}/`, _ => "")));
|
|
34
34
|
const app_js = $imports.find($import => $import.src.endsWith(".js"));
|
|
@@ -66,7 +66,7 @@ export default async app => {
|
|
|
66
66
|
|
|
67
67
|
const page_imports = {};
|
|
68
68
|
${pages.map((page, i) =>
|
|
69
|
-
`import page${i} from "${webpath(`./${location.pages}/${page}`)}" with { type: "file" };
|
|
69
|
+
`import page${i} from "${webpath(`./${location.server}/${location.pages}/${page}`)}" with { type: "file" };
|
|
70
70
|
page_imports["${page}"] = page${i};`).join("\n ")}
|
|
71
71
|
|
|
72
72
|
export default {
|