Skip to content

Commit 3398e98

Browse files
committed
Normalize path for Windows
1 parent cf80261 commit 3398e98

File tree

8 files changed

+168
-167
lines changed

8 files changed

+168
-167
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
node: ["16", "18", "20"]
8+
node: ["18", "20", "22"]
99
name: Node ${{ matrix.node }}
1010
steps:
1111
- name: Checkout repository

.github/workflows/publish-beta.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
1919
uses: actions/setup-node@v1
2020
with:
21-
node-version: "16"
21+
node-version: "20"
2222
- name: Upgrade npm
2323
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
2424
run: npm i -g npm@latest

.github/workflows/publish-lts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: steps.check.outputs.changed == 'true'
1919
uses: actions/setup-node@v3
2020
with:
21-
node-version: "16"
21+
node-version: "20"
2222
- name: Upgrade npm
2323
if: steps.check.outputs.changed == 'true'
2424
run: npm i -g npm@latest

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
if: steps.check.outputs.changed == 'true'
2121
uses: actions/setup-node@v3
2222
with:
23-
node-version: "16"
23+
node-version: "20"
2424
- name: Install
2525
if: steps.check.outputs.changed == 'true'
2626
run: npm ci

.github/workflows/visual-regression.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- name: Set up Node
1010
uses: actions/setup-node@v3
1111
with:
12-
node-version: 16
12+
node-version: 20
1313
- name: Upgrade npm
1414
run: npm i -g npm@latest
1515
- name: Get baseline screenshots

package-lock.json

+156-156
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@
3737
"@types/marked": "^4.0.8",
3838
"@types/mocha": "^10.0.6",
3939
"@types/node": "16",
40-
"@typescript-eslint/eslint-plugin": "^7.1.1",
41-
"@typescript-eslint/parser": "^7.1.1",
40+
"@typescript-eslint/eslint-plugin": "^7.4.0",
41+
"@typescript-eslint/parser": "^7.4.0",
4242
"@typestrong/fs-fixture-builder": "github:TypeStrong/fs-fixture-builder#8abd1494280116ff5318dde2c50ad01e1663790c",
4343
"c8": "^9.1.0",
44-
"esbuild": "^0.20.1",
44+
"esbuild": "^0.20.2",
4545
"eslint": "^8.57.0",
46-
"mocha": "^10.3.0",
46+
"mocha": "^10.4.0",
4747
"prettier": "3.0.3",
4848
"puppeteer": "^13.5.2",
4949
"ts-node": "^10.9.2",
50-
"typescript": "5.4.2"
50+
"typescript": "5.4.3"
5151
},
5252
"files": [
5353
"/bin",

src/test/Repository.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { tempdirProject } from "@typestrong/fs-fixture-builder";
77
import { spawnSync } from "child_process";
88
import { TestLogger } from "./TestLogger";
99
import { join } from "path";
10+
import { normalizePath } from "../lib/utils/paths";
1011

1112
describe("Repository", function () {
1213
describe("guessSourceUrlTemplate helper", () => {
@@ -153,7 +154,7 @@ describe("Repository", function () {
153154

154155
ok(repo);
155156
equal(
156-
repo.getURL(join(project.cwd, "test.js"), 1),
157+
repo.getURL(normalizePath(join(project.cwd, "test.js")), 1),
157158
"b53cc55bcdd9bc5920787a1d4a4a15fa24123b04/b53cc55b/test.js/1",
158159
);
159160
});

0 commit comments

Comments
 (0)