mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Runtime.fs() must return a promise
This commit is contained in:
1 parent
f0ae6bbc62
commit
9128c53192
4 files changed
+7
-11
No files matched your search
@@ -46,11 +46,12 @@ export function ChatPane({ projectId, projectName }: ChatPaneProps) {
|
||||
|
||||
const runBuild = async () => {
|
||||
console.log('Running build for project:', projectId);
|
||||
const runtimeFS = await runtime.fs();
|
||||
|
||||
// Copy project files to runtime filesystem
|
||||
const projectPath = `/projects/${projectId}`;
|
||||
try {
|
||||
await copyDirectory(fs, runtime.fs, projectPath, '.');
|
||||
await copyDirectory(fs, runtimeFS, projectPath, '.');
|
||||
console.log('Successfully copied project to runtime');
|
||||
} catch (error) {
|
||||
console.error('Failed to copy project to runtime:', error);
|
||||
@@ -67,7 +68,7 @@ export function ChatPane({ projectId, projectName }: ChatPaneProps) {
|
||||
// Copy "dist" directory from runtime back to project filesystem
|
||||
const distPath = `/projects/${projectId}/dist`;
|
||||
try {
|
||||
await copyDirectory(runtime.fs, fs, 'dist', distPath);
|
||||
await copyDirectory(runtimeFS, fs, 'dist', distPath);
|
||||
console.log('Successfully copied dist from runtime');
|
||||
} catch (error) {
|
||||
console.error('Failed to copy dist:', error);
|
||||
|
||||
Reference in new issue
Block a user