@expofp/offline 3.0.0-alpha.13 → 3.0.0-alpha.14
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.
|
@@ -46,13 +46,17 @@ export async function buildOfflineZip(manifest, options) {
|
|
|
46
46
|
const files = dataToFiles(data, { signal: options.signal });
|
|
47
47
|
return await buildZipArchive(files);
|
|
48
48
|
}
|
|
49
|
+
/** Known path — file lives in `packages/floorplan/public/` and is copied to dist by Vite. */
|
|
50
|
+
const COMPAT_HELPER = 'compat-helper.js';
|
|
49
51
|
function getIndexHtml(entry, manifest) {
|
|
52
|
+
// entry is "./runtime/index.js", derive the runtime base path
|
|
53
|
+
const runtimeBase = entry.slice(0, entry.lastIndexOf('/') + 1);
|
|
50
54
|
return `\
|
|
51
55
|
<!DOCTYPE html>
|
|
56
|
+
<script src="${runtimeBase}${COMPAT_HELPER}"></script>
|
|
52
57
|
<script type="module">
|
|
53
58
|
import { load } from ${JSON.stringify(entry)};
|
|
54
59
|
await load(${JSON.stringify(manifest)});
|
|
55
|
-
console.info('loaded');
|
|
56
60
|
</script>
|
|
57
61
|
`;
|
|
58
62
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/offline",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI tool for creating offline copies of ExpoFP floor plans",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"debug": "^4.4.3",
|
|
32
32
|
"tslib": "^2.3.0",
|
|
33
|
-
"@expofp/
|
|
34
|
-
"@expofp/
|
|
35
|
-
"@expofp/
|
|
36
|
-
"@expofp/
|
|
33
|
+
"@expofp/data": "3.0.0-alpha.14",
|
|
34
|
+
"@expofp/floorplan": "3.0.0-alpha.14",
|
|
35
|
+
"@expofp/utils": "3.0.0-alpha.14",
|
|
36
|
+
"@expofp/resolve": "3.0.0-alpha.14"
|
|
37
37
|
}
|
|
38
38
|
}
|