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 4343 "testonly:mutate" : " stryker run" ,
4444 "prettier" : " prettier --cache --cache-strategy metadata --write --list-different ." ,
4545 "prettier:check" : " prettier --cache --cache-strategy metadata --check ." ,
46- "check:spelling" : " cspell --cache --no-progress ' **/*' " ,
46+ "check:spelling" : " cspell --cache --no-progress \" **/*\" " ,
4747 "check:integrations" : " mocha --full-trace resources/integration-test.ts" ,
4848 "serve" : " docusaurus serve --dir websiteDist/ --config website/docusaurus.config.cjs" ,
4949 "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';
33import fs from 'node:fs' ;
44import os from 'node:os' ;
55import path from 'node:path' ;
6+ import url from 'node:url' ;
67
78import prettier from 'prettier' ;
89import ts from 'typescript' ;
910
1011export 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 , '..' ) ;
1214 return path . join ( repoDir , ...paths ) ;
1315}
1416
You can’t perform that action at this time.
0 commit comments