Skip to content

Support "npm:" scheme #34

Open
Open
@tjosepo

Description

@tjosepo

Currently, deno_cache only supports URL imports.

The only way to add an npm: module to Deno's cache is to:

  • Import it with a static import. Not ideal since it forces you to execute the package's code which does not make sense for front-end packages.
  • Use a package.json file.

It's also difficult to get the source code of npm: modules, unless the "nodeModulesDir" option is enabled.

Supporting npm: scheme or finding alternative ways to cache and obtain the source code of npm: modules that don't rely on the node_modules folder or the package.json file could enable better Deno-first tooling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions