Skip to content

Commit 14b4948

Browse files
committed
windows fix
1 parent 154e8a4 commit 14b4948

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/all-combinations.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@ try {
130130
"❌ Error: Git changes detected in tests/components directory!",
131131
);
132132
console.error(gitStatus);
133+
134+
// Show the actual diff to see what changed
135+
console.error("\n📋 Git diff:");
136+
try {
137+
const gitDiff = execSync(`git diff tests/components`, {
138+
encoding: "utf-8",
139+
});
140+
console.error(gitDiff);
141+
} catch (diffError: unknown) {
142+
console.error("Could not get git diff:", diffError);
143+
}
144+
133145
console.error("Please commit these changes or update the expected output.");
134146
process.exit(1);
135147
}

src/transformer.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Flags = {
3838
};
3939

4040
const get = async (globPattern: string): Promise<File[]> => {
41-
const files = await glob(globPattern);
41+
const files = await glob(globPattern.replace(/\\/g, '/'), { posix: true });
4242
return files
4343
.sort()
4444
.reverse()
@@ -60,8 +60,6 @@ const shortenFilenames = (sourcePath: string, files: File[]): File[] => {
6060
}));
6161
};
6262

63-
const noop = (s: string): string => s;
64-
6563
export const transformSvg = (
6664
svg: string,
6765
options: {

0 commit comments

Comments
 (0)