@tsslint/cli 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 +11 -2
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const ts = require("typescript");
|
|
4
4
|
const path = require("path");
|
|
5
|
-
const
|
|
5
|
+
const build = require("@tsslint/config/lib/build");
|
|
6
6
|
const core = require("@tsslint/core");
|
|
7
7
|
const glob = require("glob");
|
|
8
8
|
(async () => {
|
|
@@ -79,9 +79,18 @@ const glob = require("glob");
|
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
81
|
if (!configs.has(configFile)) {
|
|
82
|
-
|
|
82
|
+
try {
|
|
83
|
+
configs.set(configFile, await build.buildConfigFile(configFile, ts.sys.createHash));
|
|
84
|
+
}
|
|
85
|
+
catch (err) {
|
|
86
|
+
configs.set(configFile, undefined);
|
|
87
|
+
console.error(err);
|
|
88
|
+
}
|
|
83
89
|
}
|
|
84
90
|
const tsslintConfig = configs.get(configFile);
|
|
91
|
+
if (!tsslintConfig) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
85
94
|
parsed = parseCommonLine(tsconfig);
|
|
86
95
|
if (!parsed.fileNames) {
|
|
87
96
|
throw new Error('No input files found in tsconfig!');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsslint/cli",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tsslint": "./bin/tsslint.js"
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@clack/prompts": "^0.7.0",
|
|
19
|
-
"@tsslint/config": "0.0
|
|
20
|
-
"@tsslint/core": "0.0
|
|
21
|
-
"glob": "^10.
|
|
19
|
+
"@tsslint/config": "1.0.0",
|
|
20
|
+
"@tsslint/core": "1.0.0",
|
|
21
|
+
"glob": "^10.4.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"typescript": "*"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "8379aacab6f7902af180056ea32b1efd18376918"
|
|
27
27
|
}
|