fork-ts-checker-webpack-plugin
Advanced tools
Comparing version 0.4.6 to 0.4.7
@@ -0,4 +1,9 @@ | ||
## v0.4.7 | ||
* [Fix(types collision): update chalk and chokidar](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/147) (#142) | ||
* [Fix(logger): Don't limit Options.logger to Console type](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/143) | ||
## v0.4.6 | ||
* [Fix(types): Make options Partial<Options> ](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/141) (#140) | ||
* [Fix(types): Make options Partial<Options>](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/141) (#140) | ||
@@ -5,0 +10,0 @@ ## v0.4.5 |
"use strict"; | ||
var os = require("os"); | ||
var codeFrame = require("babel-code-frame"); | ||
var chalk = require("chalk"); | ||
var chalk_1 = require("chalk"); | ||
var fs = require("fs"); | ||
module.exports = function createCodeframeFormatter(options) { | ||
return function codeframeFormatter(message, useColors) { | ||
var colors = new chalk.constructor({ enabled: useColors }); | ||
var colors = new chalk_1.default.constructor({ enabled: useColors }); | ||
var messageColor = message.isWarningSeverity() ? colors.bold.yellow : colors.bold.red; | ||
@@ -10,0 +10,0 @@ var positionColor = colors.dim; |
"use strict"; | ||
var chalk = require("chalk"); | ||
var chalk_1 = require("chalk"); | ||
var os = require("os"); | ||
module.exports = function createDefaultFormatter() { | ||
return function defaultFormatter(message, useColors) { | ||
var colors = new chalk.constructor({ enabled: useColors }); | ||
var colors = new chalk_1.default.constructor({ enabled: useColors }); | ||
var messageColor = message.isWarningSeverity() ? colors.bold.yellow : colors.bold.red; | ||
@@ -8,0 +8,0 @@ var fileAndNumberColor = colors.bold.cyan; |
@@ -5,3 +5,3 @@ "use strict"; | ||
var childProcess = require("child_process"); | ||
var chalk = require("chalk"); | ||
var chalk_1 = require("chalk"); | ||
var fs = require("fs"); | ||
@@ -53,3 +53,3 @@ var os = require("os"); | ||
this.useColors = options.colors !== false; // default true | ||
this.colors = new chalk.constructor({ enabled: this.useColors }); | ||
this.colors = new chalk_1.default.constructor({ enabled: this.useColors }); | ||
this.formatter = (options.formatter && isFunction(options.formatter)) | ||
@@ -56,0 +56,0 @@ ? options.formatter |
/// <reference types="node" /> | ||
import childProcess = require('child_process'); | ||
import chalk = require('chalk'); | ||
import { Chalk } from 'chalk'; | ||
import webpack = require('webpack'); | ||
@@ -9,2 +9,7 @@ import CancellationToken = require('./CancellationToken'); | ||
declare type Formatter = (message: NormalizedMessage, useColors: boolean) => string; | ||
interface Logger { | ||
error(message?: any): void; | ||
warn(message?: any): void; | ||
info(message?: any): void; | ||
} | ||
interface Options { | ||
@@ -18,3 +23,3 @@ tsconfig: string; | ||
colors: boolean; | ||
logger: Console; | ||
logger: Logger; | ||
formatter: 'default' | 'codeframe' | Formatter; | ||
@@ -47,3 +52,3 @@ formatterOptions: any; | ||
ignoreLints: string[]; | ||
logger: Console; | ||
logger: Logger; | ||
silent: boolean; | ||
@@ -55,3 +60,3 @@ async: boolean; | ||
useColors: boolean; | ||
colors: chalk.Chalk; | ||
colors: Chalk; | ||
formatter: Formatter; | ||
@@ -58,0 +63,0 @@ tsconfigPath: string; |
{ | ||
"name": "fork-ts-checker-webpack-plugin", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"description": "Runs typescript type checker and linter on separate process.", | ||
@@ -53,4 +53,3 @@ "main": "lib/index.js", | ||
"@types/babel-code-frame": "^6.20.1", | ||
"@types/chalk": "^0.4.31", | ||
"@types/chokidar": "^1.7.2", | ||
"@types/chokidar": "^1.7.5", | ||
"@types/lodash.endswith": "^4.2.3", | ||
@@ -89,4 +88,4 @@ "@types/lodash.isfunction": "^3.0.3", | ||
"babel-code-frame": "^6.22.0", | ||
"chalk": "^1.1.3", | ||
"chokidar": "^1.7.0", | ||
"chalk": "^2.4.1", | ||
"chokidar": "^2.0.4", | ||
"lodash.endswith": "^4.2.1", | ||
@@ -93,0 +92,0 @@ "lodash.isfunction": "^3.0.8", |
@@ -70,3 +70,3 @@ # Fork TS Checker Webpack Plugin | ||
* **async** `boolean`: | ||
True by default - `async: false` can block webpack's emit to wait for type checker/linter and to add errors to the webpack's compilation.` | ||
True by default - `async: false` can block webpack's emit to wait for type checker/linter and to add errors to the webpack's compilation. | ||
We recommend to set this to `false` in projects where type checking is faster than webpack's build - it's better for integration with other plugins. Another scenario where you might want to set this to `false` is if you use the `overlay` functionality of `webpack-dev-server`. | ||
@@ -73,0 +73,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96510
27
1812
- Removedanymatch@1.3.2(transitive)
- Removedarr-diff@2.0.0(transitive)
- Removedarray-unique@0.2.1(transitive)
- Removedbraces@1.8.5(transitive)
- Removedchokidar@1.7.0(transitive)
- Removedexpand-brackets@0.1.5(transitive)
- Removedexpand-range@1.8.2(transitive)
- Removedextglob@0.3.2(transitive)
- Removedfilename-regex@2.0.1(transitive)
- Removedfill-range@2.2.4(transitive)
- Removedfor-own@0.1.5(transitive)
- Removedglob-base@0.3.0(transitive)
- Removedglob-parent@2.0.0(transitive)
- Removedis-dotfile@1.0.3(transitive)
- Removedis-equal-shallow@0.1.3(transitive)
- Removedis-extglob@1.0.0(transitive)
- Removedis-glob@2.0.1(transitive)
- Removedis-number@2.1.04.0.0(transitive)
- Removedis-posix-bracket@0.1.1(transitive)
- Removedis-primitive@2.0.0(transitive)
- Removedmath-random@1.0.4(transitive)
- Removedmicromatch@2.3.11(transitive)
- Removedobject.omit@2.0.1(transitive)
- Removedparse-glob@3.0.4(transitive)
- Removedpreserve@0.2.0(transitive)
- Removedrandomatic@3.1.1(transitive)
- Removedregex-cache@0.4.4(transitive)
Updatedchalk@^2.4.1
Updatedchokidar@^2.0.4