|
3 | 3 | import{userInfo}from'node:os' |
4 | 4 |
|
5 | 5 | import{Option,program}from'commander' |
6 | | -importdebugfrom'debug' |
7 | 6 |
|
| 7 | +import{createDebug,enableDebug}from'../lib/debug.js' |
8 | 8 | importlintStagedfrom'../lib/index.js' |
9 | 9 | import{CONFIG_STDIN_ERROR,RESTORE_STASH_EXAMPLE}from'../lib/messages.js' |
10 | 10 | import{readStdin}from'../lib/readStdin.js' |
11 | 11 | import{getVersion}from'../lib/version.js' |
12 | 12 |
|
13 | | -constdebugLog=debug('lint-staged:bin') |
| 13 | +constdebugLog=createDebug('lint-staged:bin') |
14 | 14 |
|
15 | 15 | // Do not terminate main Listr process on SIGINT |
16 | 16 | process.on('SIGINT',()=>{}) |
@@ -126,7 +126,7 @@ program |
126 | 126 | constcliOptions=program.parse(process.argv).opts() |
127 | 127 |
|
128 | 128 | if(cliOptions.debug){ |
129 | | -debug.enable('lint-staged*') |
| 129 | +enableDebug() |
130 | 130 | } |
131 | 131 |
|
132 | 132 | constoptions={ |
|