Skip to content

Commit 38979ed

Browse files
committed
fix: improve chalk import
1 parent 6be4906 commit 38979ed

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

lib/formatter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
const chalk = require("chalk");
1+
const chalkImport = require("chalk");
2+
const chalk = chalkImport.default || chalkImport;
23
const boxen = require("boxen");
34

45
function formatError(error) {

lib/injector.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const { findError } = require("./matcher");
22
const { formatError } = require("./formatter");
3-
const chalk = require("chalk");
3+
const chalkImport = require("chalk");
4+
const chalk = chalkImport.default || chalkImport;
45

56
/**
67
* ERR_LENS INJECTOR

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"files": [
2929
"bin/",
3030
"lib/",
31+
"locales/",
3132
"README.md",
3233
"LICENSE"
3334
],

0 commit comments

Comments
 (0)