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:
Steve Ruiz 2023-06-01 19:01:49 +01:00 committed by GitHub
parent 0c4174c0b8
commit a3c39cde4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 80 additions and 78 deletions

View file

@ -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[] = []