Skip to content

Commit b175adb

Browse files
author
Piotr Oleś
committed
v0.2.6 release
1 parent ae7faf8 commit b175adb

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.2.6
2+
* Add diagnostics/lints formatters - `formatter` and `formatterOptions` option
3+
14
## v0.2.5
25
* Add `async` option - more information in `README.md`
36

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ If `false`, disables built-in colors in logger messages. Default: `true`.
8282
* **logger** `object`:
8383
Logger instance. It should be object that implements method: `error`, `warn`, `info`. Default: `console`.
8484

85+
* **formatter** `'default' | 'codeframe' | Function`:
86+
Formatter for diagnostics and lints. By default uses `default` formatter. You can also pass your own formatter as a function
87+
(see `lib/NormalizedMessage.js` and `lib/formatter/` for api reference).
88+
89+
* **formatterOptions** `object`:
90+
Options passed to formatters (currently only `codeframe` - see [available options](https://www.npmjs.com/package/babel-code-frame#options))
91+
8592
* **silent** `boolean`:
8693
If `true`, logger will not be used. Default: `false`.
8794

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fork-ts-checker-webpack-plugin",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"description": "Runs typescript type checker and linter on separate process.",
55
"main": "lib/index.js",
66
"files": [
@@ -58,9 +58,11 @@
5858
"webpack": "^2.0.0 || ^3.0.0"
5959
},
6060
"dependencies": {
61+
"babel-code-frame": "^6.22.0",
6162
"chalk": "^1.1.3",
6263
"chokidar": "^1.7.0",
6364
"lodash.endswith": "^4.2.1",
65+
"lodash.isfunction": "^3.0.8",
6466
"lodash.isstring": "^4.0.1",
6567
"lodash.startswith": "^4.2.1"
6668
}

yarn.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,6 +1548,10 @@ lodash.isarray@^3.0.0:
15481548
version "3.0.4"
15491549
resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55"
15501550

1551+
lodash.isfunction@^3.0.8:
1552+
version "3.0.8"
1553+
resolved "https://registry.yarnpkg.com/lodash.isfunction/-/lodash.isfunction-3.0.8.tgz#4db709fc81bc4a8fd7127a458a5346c5cdce2c6b"
1554+
15511555
lodash.isstring@^4.0.1:
15521556
version "4.0.1"
15531557
resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451"

0 commit comments

Comments
 (0)