Skip to content

Commit f463ca0

Browse files
authored
Ignore .DS_Store file changes on Mac
### chokidar#path-filtering https://github.com/paulmillr/chokidar#path-filtering Resolves: NativeScript#2472
1 parent 9b0f965 commit f463ca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/livesync/livesync-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class LiveSyncService implements ILiveSyncService {
119119
private partialSync(syncWorkingDirectory: string, onChangedActions: ((event: string, filePath: string, dispatcher: IFutureDispatcher) => Promise<void>)[]): void {
120120
let that = this;
121121
let pattern = ["app", "package.json", "node_modules"];
122-
let watcher = choki.watch(pattern, { ignoreInitial: true, cwd: syncWorkingDirectory }).on("all", (event: string, filePath: string) => {
122+
let watcher = choki.watch(pattern, { ignoreInitial: true, cwd: syncWorkingDirectory, ignored: '*.DS_STORE' }).on("all", (event: string, filePath: string) => {
123123
that.$dispatcher.dispatch(async () => {
124124
try {
125125
filePath = path.join(syncWorkingDirectory, filePath);

0 commit comments

Comments
 (0)