@tsslint/cli 2.0.6 → 2.0.7
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 +2 -3
- package/package.json +7 -6
package/index.js
CHANGED
|
@@ -5,7 +5,6 @@ const path = require("path");
|
|
|
5
5
|
const core = require("@tsslint/core");
|
|
6
6
|
const cache = require("./lib/cache.js");
|
|
7
7
|
const worker = require("./lib/worker.js");
|
|
8
|
-
const glob = require("glob");
|
|
9
8
|
const fs = require("fs");
|
|
10
9
|
const os = require("os");
|
|
11
10
|
const minimatch = require("minimatch");
|
|
@@ -176,7 +175,7 @@ class Project {
|
|
|
176
175
|
if (clack.isCancel(language)) {
|
|
177
176
|
process.exit(1);
|
|
178
177
|
}
|
|
179
|
-
const tsconfigOptions =
|
|
178
|
+
const tsconfigOptions = fs.globSync('**/{tsconfig.json,tsconfig.*.json,jsconfig.json}');
|
|
180
179
|
let options = await Promise.all(tsconfigOptions.map(async (tsconfigOption) => {
|
|
181
180
|
const tsconfig = require.resolve(tsconfigOption.startsWith('.') ? tsconfigOption : `./${tsconfigOption}`, { paths: [process.cwd()] });
|
|
182
181
|
try {
|
|
@@ -261,7 +260,7 @@ class Project {
|
|
|
261
260
|
}
|
|
262
261
|
foundArg = true;
|
|
263
262
|
const searchGlob = process.argv[i];
|
|
264
|
-
const tsconfigs =
|
|
263
|
+
const tsconfigs = fs.globSync(searchGlob);
|
|
265
264
|
if (!tsconfigs.length) {
|
|
266
265
|
clack.log.error(red(`No projects found for ${projectFlag} ${searchGlob}.`));
|
|
267
266
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsslint/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=22"
|
|
7
|
+
},
|
|
5
8
|
"bin": {
|
|
6
9
|
"tsslint": "./bin/tsslint.js"
|
|
7
10
|
},
|
|
@@ -16,13 +19,11 @@
|
|
|
16
19
|
},
|
|
17
20
|
"dependencies": {
|
|
18
21
|
"@clack/prompts": "^0.8.2",
|
|
19
|
-
"@tsslint/config": "2.0.
|
|
20
|
-
"@tsslint/core": "2.0.
|
|
22
|
+
"@tsslint/config": "2.0.7",
|
|
23
|
+
"@tsslint/core": "2.0.7",
|
|
21
24
|
"@volar/language-core": "~2.4.0",
|
|
22
25
|
"@volar/language-hub": "0.0.1",
|
|
23
26
|
"@volar/typescript": "~2.4.0",
|
|
24
|
-
"glob": "^10.4.1",
|
|
25
|
-
"json5": "^2.2.3",
|
|
26
27
|
"minimatch": "^10.0.1"
|
|
27
28
|
},
|
|
28
29
|
"peerDependencies": {
|
|
@@ -32,5 +33,5 @@
|
|
|
32
33
|
"@vue-vine/language-service": "latest",
|
|
33
34
|
"@vue/language-core": "latest"
|
|
34
35
|
},
|
|
35
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "db83a7c7526c3245d2ffa6fe1c9fb04e77387959"
|
|
36
37
|
}
|