diff options
Diffstat (limited to 'build/verify-features.ts')
-rwxr-xr-x | build/verify-features.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build/verify-features.ts b/build/verify-features.ts index ac126f78..89485789 100755 --- a/build/verify-features.ts +++ b/build/verify-features.ts @@ -29,7 +29,8 @@ function findCssFileError(filename: string): string | void { } function findError(filename: string): string | void { - if (filename === 'index.tsx') { + // TODO: Replace second condition with "is gitignored" + if (filename === 'index.tsx' || filename === '.DS_Store') { return; } @@ -38,7 +39,7 @@ function findError(filename: string): string | void { } if (!filename.endsWith('.tsx')) { - return `ERR: The \`/source/features\` folder should only contain .css and .tsx files. File \`${filename}\` violates that rule`; + return `ERR: The \`/source/features\` folder should only contain .css and .tsx files. Found \`source/features/${filename}\``; } const featureId = filename.replace('.tsx', '') as FeatureID; |