Skip to content

Commit

Permalink
Fix: Resolving Command Errors due to Package Manager Changes (#3166)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaeWooKKang authored Jun 26, 2024
1 parent 26343c8 commit c341935
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ function watcher(error, resp) {
const packageJSON = JSON.parse(readFileSync(packageJSONPath, "utf8"))
if (!packageJSON.scripts || !packageJSON.scripts.build) return

if (packageJSON.scripts["build-fast"]) return `workspace ${packageJSON.name} run build-fast`
return `workspace ${packageJSON.name} run build`
if (packageJSON.scripts["build-fast"]) return `--filter=${packageJSON.name} run build-fast`
return `--filter=${packageJSON.name} run build`
})

if (commandToRun[0]) {
Expand All @@ -146,7 +146,7 @@ client.on("error", function (error) {
console.error("Error while talking to watchman: ", error)
})

client.capabilityCheck({ required: ["relative_root"] }, function (error, resp) {
client.capabilityCheck({ required: ["relative_root"], optional: [] }, function (error, resp) {
if (error) {
console.error("Error checking capabilities:", error)
return
Expand Down

0 comments on commit c341935

Please sign in to comment.