From 55ce5ae4d6e187ba29bc5eee8dca161c885dd32d Mon Sep 17 00:00:00 2001 From: Trishant Pahwa Date: Sat, 22 Jan 2022 11:34:35 +0530 Subject: [PATCH] Added file's list on dorky initialization. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index bb50925..1360b51 100644 --- a/index.js +++ b/index.js @@ -11,7 +11,7 @@ function initializeProject() { console.log('Dorky project already initialized. Remove .dorky folder to reinitialize.') } else { fs.mkdirSync('.dorky'); - fs.writeFileSync('.dorky/metadata.json', JSON.stringify({})); + fs.writeFileSync('.dorky/metadata.json', JSON.stringify({'files': []})); if (fs.existsSync('.dorkyignore')) { fs.rmdirSync('.dorky'); console.log('Dorky project already initialized. Remove .dorkyignore file to reinitialize.');