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" ;
21import * as path from "node:path" ;
32import normalize from "normalize-path" ;
43import ts from "typescript" ;
54import type { CompletedConfig , Config } from "../src/Config.js" ;
65import { BuildError } from "../src/Error/Errors.js" ;
6+ import { globSync } from "glob" ;
77
88function loadTsConfigFile ( configFile : string ) {
99 const raw = ts . sys . readFile ( configFile ) ;
@@ -64,7 +64,7 @@ function getTsConfig(config: Config) {
6464
6565export function createProgram ( config : CompletedConfig ) : ts . Program {
6666 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 ) )
6868 : [ ] ;
6969 const tsconfig = getTsConfig ( config ) ;
7070 const rootNames = rootNamesFromPath . length ? rootNamesFromPath : tsconfig . fileNames ;
You can’t perform that action at this time.
0 commit comments