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
What I mean is to have an option to consider "imports" as a bill of materials. If one external dependency is not listed inside the "imports" and is used as import in my typescript code, the program must not work.
@dsherret do you have an idea how it would be enabled? I think that banning npm:/jsr:/etc... specifier just by presence of deno.json is too restrictive and something we can't do in v2.x. Starting with an option in deno.json seems easy.
Proposition
Having a way to only authorize dependencies listed in the
imports
block of thedeno.json
file.Examples
This example should NOT work when I run
deno run -A main.ts
because the dependency is not listed in theimports
block.deno.json
{ "imports": {} }
main.ts
However, that example must work when I run
deno run -A main.ts
because the dependency is listed in theimports
block.deno.json
main.ts
The text was updated successfully, but these errors were encountered: