Update lockfile

This commit is contained in:
Alex Gleason committed 2025-07-25 03:09:25 -05:00
1 parent cda2d0326b
commit bae0ece813
2 files changed
+45 -1

No files matched your search

+10 -1
View File
@@ -7,7 +7,7 @@ import { Send, Settings, Play, CloudUpload } from 'lucide-react';
import { useAISettings } from '@/hooks/useAISettings';
import { useFS } from '@/hooks/useFS';
import { useJSRuntime } from '@/hooks/useJSRuntime';
import { copyDirectory } from '@/lib/copyFiles';
import { copyDirectory, copyFile } from '@/lib/copyFiles';
import { generateSecretKey, getPublicKey, nip19 } from 'nostr-tools';
import { bytesToHex } from 'nostr-tools/utils';
import { MessageItem } from '@/components/ai/MessageItem';
@@ -77,6 +77,15 @@ export function ChatPane({ projectId, projectName }: ChatPaneProps) {
} catch (error) {
console.error('Failed to copy dist:', error);
}
// Copy package-lock.json from runtime back to project filesystem
const packageLockPath = `/projects/${projectId}/package-lock.json`;
try {
await copyFile(runtimeFS, browserFS, 'package-lock.json', packageLockPath);
console.log('Successfully copied package-lock.json from runtime');
} catch (error) {
console.error('Failed to copy package-lock.json:', error);
}
};
const runDeploy = async () => {