File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 43
43
"testonly:mutate" : " stryker run" ,
44
44
"prettier" : " prettier --cache --cache-strategy metadata --write --list-different ." ,
45
45
"prettier:check" : " prettier --cache --cache-strategy metadata --check ." ,
46
- "check:spelling" : " cspell --cache --no-progress ' **/*' " ,
46
+ "check:spelling" : " cspell --cache --no-progress \" **/*\" " ,
47
47
"check:integrations" : " mocha --full-trace resources/integration-test.ts" ,
48
48
"serve" : " docusaurus serve --dir websiteDist/ --config website/docusaurus.config.cjs" ,
49
49
"start" : " npm run build:website && npm run serve" ,
Original file line number Diff line number Diff line change @@ -3,12 +3,14 @@ import childProcess from 'node:child_process';
3
3
import fs from 'node:fs' ;
4
4
import os from 'node:os' ;
5
5
import path from 'node:path' ;
6
+ import url from 'node:url' ;
6
7
7
8
import prettier from 'prettier' ;
8
9
import ts from 'typescript' ;
9
10
10
11
export function localRepoPath ( ...paths : ReadonlyArray < string > ) : string {
11
- const repoDir = new URL ( '..' , import . meta. url ) . pathname ;
12
+ const resourcesDir = path . dirname ( url . fileURLToPath ( import . meta. url ) ) ;
13
+ const repoDir = path . join ( resourcesDir , '..' ) ;
12
14
return path . join ( repoDir , ...paths ) ;
13
15
}
14
16
You can’t perform that action at this time.
0 commit comments