Skip to content

Commit eefbd68

Browse files
committed
Clean up snapshots
1 parent 2e7f82a commit eefbd68

File tree

12 files changed

+22225
-423
lines changed

12 files changed

+22225
-423
lines changed

add-template-suffix.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const suffix = '.template';
1010

1111
console.log(`Renaming files in ${path}...`);
1212
const files = getRecursiveFileList(path).filter(
13-
(file) => !file.endsWith(suffix)
13+
(file) => !file.endsWith(suffix) && !file.endsWith('.DS_Store')
1414
);
1515

1616
if (!files.length) {
@@ -19,7 +19,13 @@ if (!files.length) {
1919
}
2020

2121
for (const file of files) {
22-
if (file.endsWith(".meta") || file.endsWith(".png") || file.endsWith(".dll")|| file.endsWith(".unity")) {
22+
if (
23+
file.endsWith('.meta') ||
24+
file.endsWith('.png') ||
25+
file.endsWith('.dll') ||
26+
file.endsWith('.unity') ||
27+
file.endsWith('.DS_Store')
28+
) {
2329
continue;
2430
}
2531
const newFile = `${file}${suffix}`;

packages/preset-lumberjack/src/generators/preset/__snapshots__/generator.spec.ts.snap

Lines changed: 22191 additions & 415 deletions
Large diffs are not rendered by default.
-6 KB
Binary file not shown.
-6 KB
Binary file not shown.
-10 KB
Binary file not shown.
-6 KB
Binary file not shown.
-6 KB
Binary file not shown.
-8 KB
Binary file not shown.
-10 KB
Binary file not shown.
-6 KB
Binary file not shown.

0 commit comments

Comments
 (0)