Skip to content

Commit 3d625a9

Browse files
bug: fix usage of * in type on Windows (#1942)
* bug: fix usage of * in type on Windows * Run prettier * ci: test windows * ci: set node version to tests --------- Co-authored-by: Dominik Moritz <[email protected]>
1 parent 3410027 commit 3d625a9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,19 @@ jobs:
1212
test:
1313
name: Test
1414

15-
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, windows-latest]
19+
20+
runs-on: ${{ matrix.os }}
1621

1722
steps:
1823
- uses: actions/checkout@v4
1924

2025
- uses: actions/setup-node@v4
2126
with:
27+
node-version: 18.20.2
2228
cache: "yarn"
2329

2430
- name: Install Node dependencies

factory/program.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ function getTsConfig(config: Config) {
6060
}
6161

6262
export function createProgram(config: CompletedConfig): ts.Program {
63-
const rootNamesFromPath = config.path ? glob.sync(normalize(path.resolve(config.path))) : [];
63+
const rootNamesFromPath = config.path
64+
? glob.sync(normalize(path.resolve(config.path))).map((rootName) => normalize(rootName))
65+
: [];
6466
const tsconfig = getTsConfig(config);
6567
const rootNames = rootNamesFromPath.length ? rootNamesFromPath : tsconfig.fileNames;
6668

0 commit comments

Comments
 (0)