I just notice deno run support evaluating from stdin. So I think it's better to use it because you can write the lock file and reload the dependencies. For example:
echo "import 'lume/task.ts'" | deno run --reload --lock=lock.json --lock-write -
Note there is a - in the end of line
This is better since deno eval doesn't support --lock/--lock-write and --reload flag. Some people (including me) might want to keep the lock file to comply with reproducible build philosophy without vendoring the whole dependencies.
Oh, that's fantastic! I didn't know this was possible. It also allows to configure the permissions (deno eval has all permissions implicitly).
I'll change it in the next version. Thanks!
I just notice
deno run
support evaluating from stdin. So I think it's better to use it because you can write the lock file and reload the dependencies. For example:This is better since
deno eval
doesn't support--lock
/--lock-write
and--reload
flag. Some people (including me) might want to keep the lock file to comply with reproducible build philosophy without vendoring the whole dependencies.Here is my deno.json