Skip to content

Commit c341935

Browse files
authored
Fix: Resolving Command Errors due to Package Manager Changes (#3166)
1 parent 26343c8 commit c341935

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

watcher.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ function watcher(error, resp) {
121121
const packageJSON = JSON.parse(readFileSync(packageJSONPath, "utf8"))
122122
if (!packageJSON.scripts || !packageJSON.scripts.build) return
123123

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

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

149-
client.capabilityCheck({ required: ["relative_root"] }, function (error, resp) {
149+
client.capabilityCheck({ required: ["relative_root"], optional: [] }, function (error, resp) {
150150
if (error) {
151151
console.error("Error checking capabilities:", error)
152152
return

0 commit comments

Comments
 (0)