replace console.log with nicelog (#1496)
This PR replaces our `console.log` with `nicelog` so that I can more easily grep for errant console.logs. ### Change Type - [x] `internal` — Any other changes that don't affect the published package (will not publish a new version)
This commit is contained in:
parent
0c4174c0b8
commit
a3c39cde4b
22 changed files with 80 additions and 78 deletions
|
@ -1,4 +1,5 @@
|
|||
import { execFile } from 'child_process'
|
||||
import { nicelog } from './nicelog'
|
||||
|
||||
type ExecOpts = {
|
||||
pwd?: string
|
||||
|
@ -24,7 +25,7 @@ export async function exec(
|
|||
env,
|
||||
}: ExecOpts = {}
|
||||
): Promise<string> {
|
||||
console.log(`> $ ${command} ${args.join(' ')} (in ${pwd}))`)
|
||||
nicelog(`> $ ${command} ${args.join(' ')} (in ${pwd}))`)
|
||||
return new Promise((resolve, reject) => {
|
||||
const data: string[] = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue