Skip to content

Commit

Permalink
Added file's list on dorky initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
trishantpahwa committed Jan 22, 2022
1 parent 4cbf5f4 commit 55ce5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down

0 comments on commit 55ce5ae

Please sign in to comment.