fork-ts-checker-webpack-plugin 0.4.7 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/lib/CancellationToken.js +4 -2
- package/lib/FilesRegister.js +2 -1
- package/lib/FilesWatcher.js +4 -2
- package/lib/IncrementalChecker.js +41 -24
- package/lib/NormalizedMessage.js +7 -8
- package/lib/VueProgram.js +28 -16
- package/lib/WorkResult.js +2 -1
- package/lib/WorkSet.js +2 -1
- package/lib/cluster.js +7 -7
- package/lib/formatter/codeframeFormatter.js +21 -6
- package/lib/formatter/defaultFormatter.js +12 -3
- package/lib/index.js +127 -69
- package/lib/service.js +4 -4
- package/lib/types/CancellationToken.d.ts +2 -2
- package/lib/types/FilesRegister.d.ts +3 -3
- package/lib/types/FilesWatcher.d.ts +2 -3
- package/lib/types/IncrementalChecker.d.ts +12 -12
- package/lib/types/Message.d.ts +2 -2
- package/lib/types/NormalizedMessage.d.ts +6 -6
- package/lib/types/VueProgram.d.ts +5 -5
- package/lib/types/WorkResult.d.ts +2 -3
- package/lib/types/WorkSet.d.ts +2 -3
- package/lib/types/formatter/codeframeFormatter.d.ts +2 -3
- package/lib/types/formatter/defaultFormatter.d.ts +2 -3
- package/lib/types/index.d.ts +8 -6
- package/package.json +33 -9
package/lib/types/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import childProcess
|
|
2
|
+
import * as childProcess from 'child_process';
|
|
3
3
|
import { Chalk } from 'chalk';
|
|
4
|
-
import webpack
|
|
5
|
-
import CancellationToken
|
|
6
|
-
import NormalizedMessage
|
|
7
|
-
import Message from './Message';
|
|
8
|
-
|
|
4
|
+
import * as webpack from 'webpack';
|
|
5
|
+
import { CancellationToken } from './CancellationToken';
|
|
6
|
+
import { NormalizedMessage } from './NormalizedMessage';
|
|
7
|
+
import { Message } from './Message';
|
|
8
|
+
type Formatter = (message: NormalizedMessage, useColors: boolean) => string;
|
|
9
9
|
interface Logger {
|
|
10
10
|
error(message?: any): void;
|
|
11
11
|
warn(message?: any): void;
|
|
@@ -93,3 +93,5 @@ declare class ForkTsCheckerWebpackPlugin {
|
|
|
93
93
|
createDoneCallback(): (this: ForkTsCheckerWebpackPlugin) => void;
|
|
94
94
|
}
|
|
95
95
|
export = ForkTsCheckerWebpackPlugin;
|
|
96
|
+
declare namespace ForkTsCheckerWebpackPlugin {
|
|
97
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fork-ts-checker-webpack-plugin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
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",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"test": "npm run build && npm run test:unit && npm run test:integration",
|
|
15
15
|
"test:watch": "mocha -R spec --watch ./test/unit",
|
|
16
16
|
"test:coverage": "rimraf coverage && istanbul cover -root lib --include-all-sources mocha -- -R spec ./test/unit ./test/integration",
|
|
17
|
-
"lint": "eslint ./
|
|
18
|
-
"lint:fix": "eslint ./
|
|
17
|
+
"lint": "tslint --project src/tsconfig.json && eslint ./test",
|
|
18
|
+
"lint:fix": "tslint --project src/tsconfig.json --fix && eslint ./test --fix"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"url": "https://github.com/Realytics/fork-ts-checker-webpack-plugin.git",
|
|
@@ -58,24 +58,28 @@
|
|
|
58
58
|
"@types/minimatch": "^3.0.1",
|
|
59
59
|
"@types/node": "^8.0.26",
|
|
60
60
|
"@types/resolve": "0.0.4",
|
|
61
|
-
"@types/webpack": "^
|
|
61
|
+
"@types/webpack": "^4.4.9",
|
|
62
62
|
"chai": "^3.5.0",
|
|
63
63
|
"css-loader": "^0.28.7",
|
|
64
|
-
"eslint": "^
|
|
64
|
+
"eslint": "^5.7.0",
|
|
65
|
+
"husky": "^1.1.2",
|
|
65
66
|
"istanbul": "^0.4.5",
|
|
67
|
+
"lint-staged": "^7.3.0",
|
|
66
68
|
"mocha": "^3.4.1",
|
|
67
69
|
"mock-fs": "^4.3.0",
|
|
68
70
|
"mock-require": "^2.0.2",
|
|
71
|
+
"prettier": "^1.14.3",
|
|
69
72
|
"rimraf": "^2.5.4",
|
|
70
73
|
"sinon": "^2.3.1",
|
|
71
|
-
"ts-loader": "^3.
|
|
72
|
-
"tslint": "^5.
|
|
74
|
+
"ts-loader": "^4.3.0",
|
|
75
|
+
"tslint": "^5.11.0",
|
|
76
|
+
"tslint-config-prettier": "^1.15.0",
|
|
73
77
|
"typescript": "^3.0.1",
|
|
74
78
|
"vue": "^2.5.16",
|
|
75
79
|
"vue-class-component": "^6.1.1",
|
|
76
|
-
"vue-loader": "^
|
|
80
|
+
"vue-loader": "^15.2.4",
|
|
77
81
|
"vue-template-compiler": "^2.5.16",
|
|
78
|
-
"webpack": "^
|
|
82
|
+
"webpack": "^4.0.0"
|
|
79
83
|
},
|
|
80
84
|
"peerDependencies": {
|
|
81
85
|
"tslint": "^4.0.0 || ^5.0.0",
|
|
@@ -93,5 +97,25 @@
|
|
|
93
97
|
"minimatch": "^3.0.4",
|
|
94
98
|
"resolve": "^1.5.0",
|
|
95
99
|
"tapable": "^1.0.0"
|
|
100
|
+
},
|
|
101
|
+
"husky": {
|
|
102
|
+
"hooks": {
|
|
103
|
+
"pre-commit": "lint-staged"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"lint-staged": {
|
|
107
|
+
"concurrent": false,
|
|
108
|
+
"linters": {
|
|
109
|
+
"*.js": [
|
|
110
|
+
"eslint --fix"
|
|
111
|
+
],
|
|
112
|
+
"*.ts": [
|
|
113
|
+
"tslint --fix"
|
|
114
|
+
],
|
|
115
|
+
"*.{js,ts}": [
|
|
116
|
+
"prettier --write",
|
|
117
|
+
"git add"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
96
120
|
}
|
|
97
121
|
}
|