Skip to content

Commit

Permalink
fix: do not pass --watch for non-worker mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmeku committed Nov 1, 2020
1 parent be2ad20 commit 943ea82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/typescript/internal/ts_project.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,6 @@ def ts_project_macro(
"--outDir",
"$(RULEDIR)",
# FIXME: what about other settings like declaration_dir, root_dir, etc
"--watch",
],
)

Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/internal/worker/worker_adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const worker = require('./worker');

const workerArg = process.argv.indexOf('--persistent_worker')
if (workerArg > 0) {
process.argv.splice(workerArg, 1)
process.argv.splice(workerArg, 1, '--watch')

if (process.platform !== 'linux' && process.platform !== 'darwin') {
throw new Error('Worker mode is only supported on unix type systems.');
Expand Down

0 comments on commit 943ea82

Please sign in to comment.