Skip to content

Commit 2c42f74

Browse files
authored
fix for development on Windows (#3964)
1 parent acf05e3 commit 2c42f74

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
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",

resources/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import childProcess from 'node:child_process';
33
import fs from 'node:fs';
44
import os from 'node:os';
55
import path from 'node:path';
6+
import url from 'node:url';
67

78
import prettier from 'prettier';
89
import ts from 'typescript';
910

1011
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, '..');
1214
return path.join(repoDir, ...paths);
1315
}
1416

0 commit comments

Comments
 (0)