File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
packages/tailwindcss-language-server/tests Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,26 @@ import { exec } from 'node:child_process'
2
2
import * as path from 'node:path'
3
3
import { fileURLToPath } from 'node:url'
4
4
import { promisify } from 'node:util'
5
- import glob from 'fast-glob '
5
+ import { fdir } from 'fdir '
6
6
7
7
const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
8
8
9
- const fixtures = glob . sync ( [ 'tests/fixtures/*/package.json' , 'tests/fixtures/v4/*/package.json' ] , {
10
- cwd : path . resolve ( __dirname , '..' ) ,
11
- } )
9
+ const root = path . resolve ( __dirname , '..' )
10
+
11
+ const fixtures = new fdir ( )
12
+ . withFullPaths ( )
13
+ . globWithOptions ( [ `tests/fixtures/*/package.json` , `tests/fixtures/v4/*/package.json` ] , {
14
+ strictSlashes : true ,
15
+ contains : true ,
16
+ } )
17
+ . crawl ( path . resolve ( root , 'tests' ) )
18
+ . sync ( )
12
19
13
20
const execAsync = promisify ( exec )
14
21
15
22
await Promise . all (
16
23
fixtures . map ( async ( fixture ) => {
17
- console . log ( `Installing dependencies for ${ fixture } ` )
24
+ console . log ( `Installing dependencies for ${ path . relative ( root , fixture ) } ` )
18
25
19
26
await execAsync ( 'npm install' , { cwd : path . dirname ( fixture ) } )
20
27
} ) ,
You can’t perform that action at this time.
0 commit comments