Skip to content

Commit 06f565d

Browse files
AndyBanjohnnyreilly
authored andcommitted
Round compilation time (#235)
1 parent 2c03b7e commit 06f565d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.0.1
2+
3+
* [Apply rounding to compilation time](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/235)
4+
15
## v1.0.0
26

37
* [Going 1.0](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/218)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fork-ts-checker-webpack-plugin",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Runs typescript type checker and linter on separate process.",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,8 @@ class ForkTsCheckerWebpackPlugin {
659659
private handleServiceMessage(message: Message): void {
660660
if (this.measureTime) {
661661
const delta = this.performance.now() - this.startAt;
662-
this.logger.info(`compilation took: ${delta} ms.`);
662+
const deltaRounded = Math.round(delta * 100) / 100;
663+
this.logger.info(`Compilation took: ${deltaRounded} ms.`);
663664
}
664665
if (this.cancellationToken) {
665666
this.cancellationToken.cleanupCancellation();

0 commit comments

Comments
 (0)