stereoframe 0.1.0 → 0.1.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/dist/cli.js +6 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -341,7 +341,8 @@ async function openSession(projectDir, opts = {}) {
|
|
|
341
341
|
args: [
|
|
342
342
|
"--force-device-scale-factor=1",
|
|
343
343
|
"--hide-scrollbars",
|
|
344
|
-
"--enable-unsafe-swiftshader"
|
|
344
|
+
"--enable-unsafe-swiftshader",
|
|
345
|
+
...process.env.CI ? ["--no-sandbox", "--disable-setuid-sandbox"] : []
|
|
345
346
|
]
|
|
346
347
|
});
|
|
347
348
|
try {
|
|
@@ -519,10 +520,11 @@ function scaffoldProject(name, cwd = process.cwd()) {
|
|
|
519
520
|
return dir;
|
|
520
521
|
}
|
|
521
522
|
function updateRuntime(projectDir) {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
throw new Error(`no assets/ directory found in ${projectDir}`);
|
|
523
|
+
if (!existsSync3(join3(resolve4(projectDir), "index.html"))) {
|
|
524
|
+
throw new Error(`no index.html in ${projectDir} — not a stereoframe project`);
|
|
525
525
|
}
|
|
526
|
+
const target = join3(resolve4(projectDir), "assets", "stereoframe.js");
|
|
527
|
+
mkdirSync3(dirname2(target), { recursive: true });
|
|
526
528
|
copyFileSync2(resolveRuntimeBundle(), target);
|
|
527
529
|
return target;
|
|
528
530
|
}
|
package/package.json
CHANGED