fix(dev-infra): replace `chalk` require with namespace import (#41847)

Since we now use version 4 we can use namespace imports and leverage in build types.

PR Close #41847
This commit is contained in:
Alan Agius 2021-04-28 11:01:41 +02:00 committed by Jessica Janiuk
parent 876ca8edba
commit 1aed2f3234
1 changed files with 2 additions and 5 deletions

View File

@ -7,14 +7,11 @@
*/
// tslint:disable:no-console
// TODO(alexeagle): why not import chalk from 'chalk'?
// Something to do with TS default export in UMD emit...
const chalk = require('chalk');
import * as chalk from 'chalk';
import * as minimist from 'minimist';
import * as path from 'path';
import {SerializationOptions, generateGoldenFile, verifyAgainstGoldenFile, discoverAllEntrypoints} from './main';
import {discoverAllEntrypoints, generateGoldenFile, SerializationOptions, verifyAgainstGoldenFile} from './main';
/** Name of the CLI */
const CMD = 'ts-api-guardian';