Skip to content

Commit

Permalink
fix for development on Windows (#3964)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakesun authored Sep 1, 2023
1 parent acf05e3 commit 2c42f74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"testonly:mutate": "stryker run",
"prettier": "prettier --cache --cache-strategy metadata --write --list-different .",
"prettier:check": "prettier --cache --cache-strategy metadata --check .",
"check:spelling": "cspell --cache --no-progress '**/*'",
"check:spelling": "cspell --cache --no-progress \"**/*\"",
"check:integrations": "mocha --full-trace resources/integration-test.ts",
"serve": "docusaurus serve --dir websiteDist/ --config website/docusaurus.config.cjs",
"start": "npm run build:website && npm run serve",
Expand Down
4 changes: 3 additions & 1 deletion resources/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ import childProcess from 'node:child_process';
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import url from 'node:url';

import prettier from 'prettier';
import ts from 'typescript';

export function localRepoPath(...paths: ReadonlyArray<string>): string {
const repoDir = new URL('..', import.meta.url).pathname;
const resourcesDir = path.dirname(url.fileURLToPath(import.meta.url));
const repoDir = path.join(resourcesDir, '..');
return path.join(repoDir, ...paths);
}

Expand Down

0 comments on commit 2c42f74

Please sign in to comment.