update version in import?
Can someone help me to understand, what's the recommended approach for updating version specifiers in imports? (Without doing it by hand 😉 )
Currently using that for devDependencies , but deno outdated and deno update do not seem to check for that, even though the specifier can be found in the lock file.
I also tried to find the right docs for that, but wasn't able to.
3 Replies
also when I change the version specifier in the file and rerun
deno install or deno check the lock file is not updated.
Is the only reliable way to drop the lockfile and recreate it?Oh, maybe my confusion came from the fact that it
deno update doesn't think it should update the following without passing --latest, which it only mentions after I moved the version specifiers from files/imports ot deno.json ... at least now deno outdated lists the available update.
Any ideas, why this is not considered a safe update? is that because I pinned the version?
The commands most likely don't look at the code and just look at deno.json
There is also
deno install --entrypoint main.ts