|
1 | | -import fastGlob from "fast-glob"; |
2 | 1 | import * as minimatch from "minimatch"; |
3 | 2 | import * as fs from "node:fs"; |
4 | 3 | import * as fsp from "node:fs/promises"; |
5 | 4 | import * as os from "node:os"; |
6 | 5 | import * as path from "node:path"; |
| 6 | +import { glob, globSync } from "tinyglobby"; |
7 | 7 | import { Runtime, RuntimeFileInfo, RuntimeFileSystem, RuntimePath } from "./Runtime"; |
8 | 8 |
|
9 | 9 | export class NodeRuntime implements Runtime { |
@@ -163,14 +163,16 @@ class NodeRuntimeFileSystem implements RuntimeFileSystem { |
163 | 163 | } |
164 | 164 |
|
165 | 165 | glob(patterns: ReadonlyArray<string>) { |
166 | | - return fastGlob(patterns as string[], { |
| 166 | + return glob(patterns as string[], { |
| 167 | + expandDirectories: false, |
167 | 168 | cwd: this.getCurrentDirectory(), |
168 | 169 | absolute: true, |
169 | 170 | }); |
170 | 171 | } |
171 | 172 |
|
172 | 173 | globSync(patterns: ReadonlyArray<string>) { |
173 | | - return fastGlob.sync(patterns as string[], { |
| 174 | + return globSync(patterns as string[], { |
| 175 | + expandDirectories: false, |
174 | 176 | cwd: this.getCurrentDirectory(), |
175 | 177 | absolute: true, |
176 | 178 | }); |
|
0 commit comments