From f93f459cdb684b038cec0a6acac47aacfc11ea98 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 17 Mar 2021 09:44:02 +0100 Subject: [PATCH] add the entire project to gist --- libs/remix-ui/file-explorer/src/lib/file-explorer.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) }) }