Skip to content

Commit

Permalink
Ignore .DS_Store file changes on Mac (#2473)
Browse files Browse the repository at this point in the history
* Ignore .DS_Store file changes on Mac

### chokidar#path-filtering
https://github.com/paulmillr/chokidar#path-filtering

Resolves:
#2472

* Updated to ignored: '**/*.DS_Store'
  • Loading branch information
roblav96 authored and Plamen5kov committed Feb 6, 2017
1 parent 4f19063 commit 11fc089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/livesync/livesync-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class LiveSyncService implements ILiveSyncService {
private partialSync(syncWorkingDirectory: string, onChangedActions: ((event: string, filePath: string, dispatcher: IFutureDispatcher) => Promise<void>)[]): void {
let that = this;
let pattern = ["app", "package.json", "node_modules"];
let watcher = choki.watch(pattern, { ignoreInitial: true, cwd: syncWorkingDirectory }).on("all", (event: string, filePath: string) => {
let watcher = choki.watch(pattern, { ignoreInitial: true, cwd: syncWorkingDirectory, ignored: '**/*.DS_Store' }).on("all", (event: string, filePath: string) => {
that.$dispatcher.dispatch(async () => {
try {
filePath = path.join(syncWorkingDirectory, filePath);
Expand Down

0 comments on commit 11fc089

Please sign in to comment.