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:
parent
876ca8edba
commit
1aed2f3234
|
@ -7,14 +7,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// tslint:disable:no-console
|
// tslint:disable:no-console
|
||||||
|
import * as chalk from 'chalk';
|
||||||
// TODO(alexeagle): why not import chalk from 'chalk'?
|
|
||||||
// Something to do with TS default export in UMD emit...
|
|
||||||
const chalk = require('chalk');
|
|
||||||
import * as minimist from 'minimist';
|
import * as minimist from 'minimist';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
|
|
||||||
import {SerializationOptions, generateGoldenFile, verifyAgainstGoldenFile, discoverAllEntrypoints} from './main';
|
import {discoverAllEntrypoints, generateGoldenFile, SerializationOptions, verifyAgainstGoldenFile} from './main';
|
||||||
|
|
||||||
/** Name of the CLI */
|
/** Name of the CLI */
|
||||||
const CMD = 'ts-api-guardian';
|
const CMD = 'ts-api-guardian';
|
||||||
|
|
Loading…
Reference in New Issue