Skip to content

Commit

Permalink
removed .d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
harshpathakzz committed Nov 29, 2024
1 parent d331f76 commit 1c44c7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ui-toolkit/final-find-replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand Down

0 comments on commit 1c44c7c

Please sign in to comment.