diff --git a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx index 790add9b69..51d92ac594 100644 --- a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx +++ b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx @@ -1077,7 +1077,13 @@ function packageFiles (filesProvider, directory, callback) { cb() }) } - }, (error) => { + }, async (error) => { + try { + const json = await filesProvider.copyFolderToJson(directory) + ret['project.json'] = { content: JSON.stringify(json, null, '\t') } + } catch (e) { + console.log(e) + } callback(error, ret) }) }