Skip to content

Commit

Permalink
Update build.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alisahinozcelik committed Nov 7, 2018
1 parent c1e86f2 commit 7ba1c9a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ const file = fs.readFileSync('./index.js', 'utf-8');

try {
fs.mkdirSync(path.resolve() + '/dist');
} catch (e) {
}
} catch (e) {}

writeFile(file);

function writeFile(file) {
fs.writeFileSync('./dist/cli.js', '#!/usr/bin/env node \n' + file, 'utf-8');
}
fs.writeFileSync('./dist/cli.js', '#!/usr/bin/env node \n' + file, 'utf-8');

0 comments on commit 7ba1c9a

Please sign in to comment.