mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
refactor: use logger in package.js
This commit is contained in:
parent
fe2dd22c14
commit
c20034b994
@ -60,7 +60,7 @@ export default class Package extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
writePackage() {
|
writePackage() {
|
||||||
consola.debug('Writing', this.packageJSON)
|
this.logger.debug('Writing', this.packageJSON)
|
||||||
writeFileSync(this.packageJSON, JSON.stringify(this.packageObj, null, 2) + '\n')
|
writeFileSync(this.packageJSON, JSON.stringify(this.packageObj, null, 2) + '\n')
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -172,7 +172,7 @@ export default class Package extends EventEmitter {
|
|||||||
}
|
}
|
||||||
dependencies[name] = `^${_pkg.version}`
|
dependencies[name] = `^${_pkg.version}`
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
consola.warn(e)
|
this.logger.warn(e)
|
||||||
delete dependencies[name]
|
delete dependencies[name]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user