Skip to content

Commit

Permalink
refactor: use logger in package.js
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Aug 31, 2018
1 parent fe2dd22 commit c20034b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class Package extends EventEmitter {
}

writePackage() {
consola.debug('Writing', this.packageJSON)
this.logger.debug('Writing', this.packageJSON)
writeFileSync(this.packageJSON, JSON.stringify(this.packageObj, null, 2) + '\n')
}

Expand Down Expand Up @@ -172,7 +172,7 @@ export default class Package extends EventEmitter {
}
dependencies[name] = `^${_pkg.version}`
} catch (e) {
consola.warn(e)
this.logger.warn(e)
delete dependencies[name]
}
}
Expand Down

0 comments on commit c20034b

Please sign in to comment.