From 6b664f34074e109636eb31a420d5c16a1beeebe5 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Fri, 9 Sep 2022 00:12:30 +0700 Subject: [PATCH] Update verify-features.ts --- build/verify-features.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/verify-features.ts b/build/verify-features.ts index ac126f7820ff..89485789d972 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;