Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Deno v2 has arrived. Updating the bits to support using it. I ran a
deno fmt
as well to handle any formatting changes coming along inv2
.Additionally, I made the swap to use
imports
indeno.json
. This is more newly supported, but provides a few benefits overdep.ts
. Do note, any local / dev dependencies (see scripts or testing) still use a direct import out of convenience and less need for central control. The tests still usetest.ts
however to handle all deps including the additional helper functions.It means that all of our imports can be listed in a central place much the same, but at the actual import location, we are able to specify the dependency from which it originates. This makes it clear when we are using a dependency directly as opposed to an extend version.
The
dnt
script is able to use these just the same, and it allows us to remove themapping
for most values. It more centrally handles the versions. The one caveat, if we want to use a deno based import still, we specify it as such in thedeno.json
imports
and then provide amapping
when using dnt.