File tree Expand file tree Collapse file tree 3 files changed +22
-10
lines changed
packages/tailwindcss-language-server Expand file tree Collapse file tree 3 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 20
20
"create-notices-file" : " node scripts/createNoticesFile.mjs" ,
21
21
"prepublishOnly" : " pnpm run build" ,
22
22
"test" : " vitest" ,
23
- "pretest" : " node tests/prepare.js "
23
+ "pretest" : " node tests/prepare.mjs "
24
24
},
25
25
"bin" : {
26
26
"tailwindcss-language-server" : " ./bin/tailwindcss-language-server"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { exec } from 'node:child_process'
2
+ import * as path from 'node:path'
3
+ import { fileURLToPath } from 'node:url'
4
+ import { promisify } from 'node:util'
5
+ import glob from 'fast-glob'
6
+
7
+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
8
+
9
+ const fixtures = glob . sync ( [ 'tests/fixtures/*/package.json' , 'tests/fixtures/v4/*/package.json' ] , {
10
+ cwd : path . resolve ( __dirname , '..' ) ,
11
+ } )
12
+
13
+ const execAsync = promisify ( exec )
14
+
15
+ await Promise . all (
16
+ fixtures . map ( async ( fixture ) => {
17
+ console . log ( `Installing dependencies for ${ fixture } ` )
18
+
19
+ await execAsync ( 'npm install' , { cwd : path . dirname ( fixture ) } )
20
+ } ) ,
21
+ )
You can’t perform that action at this time.
0 commit comments