Skip to content

Commit 4ff2c97

Browse files
authored
chore: replace glob with fs.globSync (#70)
1 parent b5914c9 commit 4ff2c97

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

packages/cli/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import path = require('path');
33
import core = require('@tsslint/core');
44
import cache = require('./lib/cache.js');
55
import worker = require('./lib/worker.js');
6-
import glob = require('glob');
76
import fs = require('fs');
87
import os = require('os');
98
import minimatch = require('minimatch');
@@ -208,7 +207,7 @@ class Project {
208207
process.exit(1);
209208
}
210209

211-
const tsconfigOptions = glob.sync('**/{tsconfig.json,tsconfig.*.json,jsconfig.json}');
210+
const tsconfigOptions = fs.globSync('**/{tsconfig.json,tsconfig.*.json,jsconfig.json}');
212211

213212
let options = await Promise.all(
214213
tsconfigOptions.map(async tsconfigOption => {
@@ -305,7 +304,7 @@ class Project {
305304
}
306305
foundArg = true;
307306
const searchGlob = process.argv[i];
308-
const tsconfigs = glob.sync(searchGlob);
307+
const tsconfigs = fs.globSync(searchGlob);
309308
if (!tsconfigs.length) {
310309
clack.log.error(red(`No projects found for ${projectFlag} ${searchGlob}.`));
311310
process.exit(1);

packages/cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"@volar/language-core": "~2.4.0",
2222
"@volar/language-hub": "0.0.1",
2323
"@volar/typescript": "~2.4.0",
24-
"glob": "^10.4.1",
2524
"json5": "^2.2.3",
2625
"minimatch": "^10.0.1"
2726
},

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)