Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslawpluta committed Jan 24, 2016
1 parent 6f9ef39 commit 1a8b2f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
*.mp3
*.m4a
.DS_Store
cleanup
node_modules
test
bin
6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

2 changes: 1 addition & 1 deletion lib/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function addToPkg() {
list.splice(list.indexOf('main') + 1, 0, 'bin');
pkg.bin = filePath;
pkg = sortObj(pkg, list);
fs.writeFileSync(path.join(__dirname, '..', 'package.json'), JSON.stringify(pkg, null, 2), 'utf8');
}

function downloader(binDir, callback) {
Expand Down Expand Up @@ -79,7 +80,6 @@ function downloader(binDir, callback) {
if (err) { return callback(err); }
fs.writeFileSync(verpath, newVersion);
addToPkg();
fs.writeFileSync(path.join(__dirname, '..', 'package.json'), JSON.stringify(pkg, null, 2), 'utf8');
callback(null, 'Downloaded youtube-dl ' + newVersion);
});

Expand Down

0 comments on commit 1a8b2f0

Please sign in to comment.