@tsslint/typescript-plugin 0.0.12 → 1.0.0
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/index.js +3 -3
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const core_1 = require("@tsslint/core");
|
|
3
3
|
const path = require("path");
|
|
4
4
|
const languageServiceDecorators = new WeakMap();
|
|
5
|
-
const init =
|
|
5
|
+
const init = modules => {
|
|
6
6
|
const { typescript: ts } = modules;
|
|
7
7
|
const pluginModule = {
|
|
8
8
|
create(info) {
|
|
@@ -125,7 +125,7 @@ function decorateLanguageService(ts, tsconfig, info) {
|
|
|
125
125
|
}
|
|
126
126
|
let configImportPath;
|
|
127
127
|
try {
|
|
128
|
-
configImportPath = require.resolve('@tsslint/config', { paths: [configFile] });
|
|
128
|
+
configImportPath = require.resolve('@tsslint/config/lib/watch', { paths: [path.dirname(configFile)] });
|
|
129
129
|
}
|
|
130
130
|
catch (err) {
|
|
131
131
|
configFileDiagnostics = [{
|
|
@@ -146,7 +146,7 @@ function decorateLanguageService(ts, tsconfig, info) {
|
|
|
146
146
|
languageService: info.languageService,
|
|
147
147
|
typescript: ts,
|
|
148
148
|
};
|
|
149
|
-
configFileBuildContext = await watchConfigFile(configFile,
|
|
149
|
+
configFileBuildContext = await watchConfigFile(configFile, (_config, { errors, warnings }) => {
|
|
150
150
|
config = _config;
|
|
151
151
|
configFileDiagnostics = [
|
|
152
152
|
...errors.map(error => [error, ts.DiagnosticCategory.Error]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsslint/typescript-plugin",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"directory": "packages/typescript-plugin"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@tsslint/core": "0.0
|
|
15
|
+
"@tsslint/core": "1.0.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@tsslint/config": "0.0
|
|
18
|
+
"@tsslint/config": "1.0.0"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "8379aacab6f7902af180056ea32b1efd18376918"
|
|
21
21
|
}
|