File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
- import * as glob from "glob" ;
2
1
import * as path from "node:path" ;
3
2
import normalize from "normalize-path" ;
4
3
import ts from "typescript" ;
5
4
import type { CompletedConfig , Config } from "../src/Config.js" ;
6
5
import { BuildError } from "../src/Error/Errors.js" ;
6
+ import { globSync } from "glob" ;
7
7
8
8
function loadTsConfigFile ( configFile : string ) {
9
9
const raw = ts . sys . readFile ( configFile ) ;
@@ -64,7 +64,7 @@ function getTsConfig(config: Config) {
64
64
65
65
export function createProgram ( config : CompletedConfig ) : ts . Program {
66
66
const rootNamesFromPath = config . path
67
- ? glob . sync ( normalize ( path . resolve ( config . path ) ) ) . map ( ( rootName ) => normalize ( rootName ) )
67
+ ? globSync ( normalize ( path . resolve ( config . path ) ) ) . map ( ( rootName ) => normalize ( rootName ) )
68
68
: [ ] ;
69
69
const tsconfig = getTsConfig ( config ) ;
70
70
const rootNames = rootNamesFromPath . length ? rootNamesFromPath : tsconfig . fileNames ;
You can’t perform that action at this time.
0 commit comments