mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 19:07:41 +00:00
fix(watchers): apply Library exclusions where the watcher receives a subscribe
Keeps the existing Parcel options cast untouched.
This commit is contained in:
@@ -146,10 +146,7 @@ function main(): void {
|
||||
)
|
||||
}
|
||||
},
|
||||
// The host sends the canonical root; decide exclusions here, off Electron main.
|
||||
withMacosProtectedWatchExclusions(dir, opts, {
|
||||
realpath: realpathSync.native
|
||||
}) as ParcelWatcher.Options
|
||||
opts as ParcelWatcher.Options
|
||||
)
|
||||
} finally {
|
||||
activeSubscriptionCrawlId = null
|
||||
@@ -222,7 +219,15 @@ function main(): void {
|
||||
if (message.op === 'subscribe') {
|
||||
subscriptions.set(
|
||||
message.id,
|
||||
handleSubscribe(message.id, message.dir, message.opts, message.delivery)
|
||||
handleSubscribe(
|
||||
message.id,
|
||||
message.dir,
|
||||
// The host sends the canonical root; decide exclusions here, off Electron main.
|
||||
withMacosProtectedWatchExclusions(message.dir, message.opts, {
|
||||
realpath: realpathSync.native
|
||||
}),
|
||||
message.delivery
|
||||
)
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user