You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when adding --watch after deno compile we are greeted with
➜ deno compile --watch index.ts
error: unexpected argument '--watch' found
tip: to pass '--watch' as a value, use '-- --watch'
Usage: deno compile [OPTIONS] [SCRIPT_ARG]...
From what I can tell, this only happens withcompile, while run, test, fmt all start the watcher successfully.
Are the docs wrong? Is this expected? Or am I doing something wrong here?
The text was updated successfully, but these errors were encountered:
On adding a --watch flag to deno compile, I'm not sure if it's so useful because you need to manually execute the executable after anyway. I usually do:
Ah I see. For my use-case it actually is useful, as I have symlinked the compiled result as a global command, and having updates propagate without an extra command is neat.
For my case though, I can set up a separate watcher (maybe nodemon) to execute the compilation step on change.
Version: Deno 2.0.3 and 2.1.10
Hello! 👋
According to the docs, we should be able to use the
--watch
flag with thecompile
subcommand.https://docs.deno.com/runtime/getting_started/command_line_interface/#watch-mode
However, when adding
--watch
afterdeno compile
we are greeted withFrom what I can tell, this only happens with
compile
, whilerun
,test
,fmt
all start the watcher successfully.Are the docs wrong? Is this expected? Or am I doing something wrong here?
The text was updated successfully, but these errors were encountered: