diff --git a/packages/ui-toolkit/final-find-replace.js b/packages/ui-toolkit/final-find-replace.js index 4f61c633..252801d2 100644 --- a/packages/ui-toolkit/final-find-replace.js +++ b/packages/ui-toolkit/final-find-replace.js @@ -31,12 +31,14 @@ const variableMap = { // Paths or patterns to exclude const exclusions = [ + '.d.ts', // Exclude TypeScript declaration files + // Add other exclusions as needed ]; // Function to check if a path should be excluded function isExcluded(fullPath) { return exclusions.some(exclusion => - fullPath.includes(exclusion) + fullPath.endsWith(exclusion) // Check if the file ends with the exclusion pattern ); }