Skip to content

Commit 182ae23

Browse files
committedMar 30, 2023
fix: fix exclude copying tsconfig.json file issue.
1 parent ca1d2b2 commit 182ae23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/core/src/watcher/copyFiles.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const watcherCopyFiles = (entry: string[] = [], options: CopyFilesOptions
1717
persistent: true,
1818
});
1919
watcher.on('all', async (eventName, filepath, stats) => {
20-
if (/\.(test|spec)\.(js|jsx|ts|tsx)$/i.test(filepath)) {
20+
if (/\.(test|spec)\.(js|jsx|ts|tsx)$/i.test(filepath) || /\/tsconfig\.json$/i.test(filepath)) {
2121
return;
2222
}
2323
if (

0 commit comments

Comments
 (0)
Please sign in to comment.