Skip to content

Commit 62cff3c

Browse files
committed
fix ES module for chalk on startup
1 parent 1243faa commit 62cff3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/startup/workspaceSafety.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import os from 'os';
99
import path from 'path';
1010
import fs from 'fs-extra';
11+
import chalk from 'chalk';
1112

1213
export interface WorkspaceSafetyResult {
1314
safe: boolean;
@@ -345,8 +346,6 @@ export function printDangerousWorkspaceWarning(
345346
workspacePath: string,
346347
result: WorkspaceSafetyResult
347348
): void {
348-
const chalk = require('chalk');
349-
350349
const boxWidth = 65;
351350
const horizontalLine = '─'.repeat(boxWidth - 2);
352351

0 commit comments

Comments
 (0)