Skip to content

Commit

Permalink
bug(cli): fix progress bar
Browse files Browse the repository at this point in the history
fixes #846
  • Loading branch information
Idrinth committed Apr 21, 2024
1 parent 8cfea62 commit 98ec65f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/src/cli/make.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export default (args: string[], cwd: string,) => {
stopOnComplete: true,
format: 'progress [{bar}] {value}/{total} {task}',
},);
bar.update({
task: '',
},);
const mkdir = (path: string,) => {
bar.update({
task: `Creating ${ path }`,
Expand All @@ -45,7 +48,7 @@ export default (args: string[], cwd: string,) => {
bar.update({
task: `Creating ${ path }`,
},);
writeFileSync(root + '/package.json', data, 'utf8',);
writeFileSync(root + path, data, 'utf8',);
};
const exec = (command: string,) => {
bar.update({
Expand Down

0 comments on commit 98ec65f

Please sign in to comment.