Skip to content

Commit 778e854

Browse files
committed
fix dependencies() & see it in CI
1 parent 1a0c525 commit 778e854

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import prettyHrtime from 'pretty-hrtime'
77
import { text } from 'stream/consumers'
88
import read from 'read-cache'
99
import pc from 'picocolors'
10-
import { glob } from 'tinyglobby'
10+
import { glob, globSync } from 'tinyglobby'
1111
import slash from 'slash'
1212
import chokidar from 'chokidar'
1313

@@ -308,11 +308,11 @@ function dependencies(results) {
308308
.map(depGraph.add)
309309
.forEach((dependency) => {
310310
if (dependency.type === 'dir-dependency') {
311-
messages.push(
312-
dependency.glob
313-
? path.join(dependency.dir, dependency.glob)
314-
: dependency.dir,
315-
)
311+
if (dependency.glob) {
312+
messages.push(...globSync(path.join(dependency.dir, dependency.glob), { dot: argv.includeDotfiles }))
313+
} else {
314+
messages.push(dependency.dir)
315+
}
316316
} else {
317317
messages.push(dependency.file)
318318
}

0 commit comments

Comments
 (0)