File tree 5 files changed +190
-21
lines changed
5 files changed +190
-21
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " fork-ts-checker-webpack-plugin" ,
3
- "version" : " 0.4.6 " ,
3
+ "version" : " 0.4.7 " ,
4
4
"description" : " Runs typescript type checker and linter on separate process." ,
5
5
"main" : " lib/index.js" ,
6
6
"types" : " lib/types/index.d.ts" ,
50
50
},
51
51
"devDependencies" : {
52
52
"@types/babel-code-frame" : " ^6.20.1" ,
53
- "@types/chalk" : " ^0.4.31" ,
54
- "@types/chokidar" : " ^1.7.2" ,
53
+ "@types/chokidar" : " ^1.7.5" ,
55
54
"@types/lodash.endswith" : " ^4.2.3" ,
56
55
"@types/lodash.isfunction" : " ^3.0.3" ,
57
56
"@types/lodash.isstring" : " ^4.0.3" ,
85
84
},
86
85
"dependencies" : {
87
86
"babel-code-frame" : " ^6.22.0" ,
88
- "chalk" : " ^1.1.3 " ,
89
- "chokidar" : " ^1.7.0 " ,
87
+ "chalk" : " ^2.4.1 " ,
88
+ "chokidar" : " ^2.0.4 " ,
90
89
"lodash.endswith" : " ^4.2.1" ,
91
90
"lodash.isfunction" : " ^3.0.8" ,
92
91
"lodash.isstring" : " ^4.0.1" ,
Original file line number Diff line number Diff line change 1
1
import os = require( 'os' ) ;
2
2
import codeFrame = require( 'babel-code-frame' ) ;
3
- import chalk = require ( 'chalk' ) ;
3
+ import chalk from 'chalk' ;
4
4
import fs = require( 'fs' ) ;
5
5
import NormalizedMessage = require( '../NormalizedMessage' ) ;
6
6
Original file line number Diff line number Diff line change 1
1
2
- import chalk = require ( 'chalk' ) ;
2
+ import chalk from 'chalk' ;
3
3
import os = require( 'os' ) ;
4
4
import NormalizedMessage = require( '../NormalizedMessage' ) ;
5
5
Original file line number Diff line number Diff line change 1
1
import path = require( 'path' ) ;
2
2
import process = require( 'process' ) ;
3
3
import childProcess = require( 'child_process' ) ;
4
- import chalk = require ( 'chalk' ) ;
4
+ import chalk , { Chalk } from 'chalk' ;
5
5
import fs = require( 'fs' ) ;
6
6
import os = require( 'os' ) ;
7
7
import webpack = require( 'webpack' ) ;
@@ -77,7 +77,7 @@ class ForkTsCheckerWebpackPlugin {
77
77
workersNumber : number ;
78
78
memoryLimit : number ;
79
79
useColors : boolean ;
80
- colors : chalk . Chalk ;
80
+ colors : Chalk ;
81
81
formatter : Formatter ;
82
82
83
83
tsconfigPath : string ;
@@ -599,7 +599,7 @@ class ForkTsCheckerWebpackPlugin {
599
599
}
600
600
601
601
createEmitCallback ( compilation : any , callback : ( ) => void ) {
602
- return function emitCallback ( this : ForkTsCheckerWebpackPlugin ) {
602
+ return function emitCallback ( this : ForkTsCheckerWebpackPlugin ) {
603
603
const elapsed = Math . round ( this . elapsed [ 0 ] * 1E9 + this . elapsed [ 1 ] ) ;
604
604
605
605
if ( 'hooks' in this . compiler ) {
@@ -651,7 +651,7 @@ class ForkTsCheckerWebpackPlugin {
651
651
}
652
652
653
653
createDoneCallback ( ) {
654
- return function doneCallback ( this : ForkTsCheckerWebpackPlugin ) {
654
+ return function doneCallback ( this : ForkTsCheckerWebpackPlugin ) {
655
655
const elapsed = Math . round ( this . elapsed [ 0 ] * 1E9 + this . elapsed [ 1 ] ) ;
656
656
657
657
if ( this . compiler ) {
You can’t perform that action at this time.
0 commit comments