Skip to content

Commit

Permalink
fix: fix windows exclude copy file compatibility issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 30, 2023
1 parent cfe784f commit 8f0ee54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/watcher/copyFiles.ts
Expand Up @@ -17,7 +17,7 @@ export const watcherCopyFiles = (entry: string[] = [], options: CopyFilesOptions
persistent: true,
});
watcher.on('all', async (eventName, filepath, stats) => {
if (/\.(test|spec)\.(js|jsx|ts|tsx)$/i.test(filepath) || /\/tsconfig\.json$/i.test(filepath)) {
if (/\.(test|spec)\.(js|jsx|ts|tsx)$/i.test(filepath) || /[/\\]tsconfig\.json$/i.test(filepath)) {
return;
}
if (
Expand Down

0 comments on commit 8f0ee54

Please sign in to comment.