Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: first-class Deno installs #146

Merged
merged 3 commits into from
Jul 18, 2022
Merged

feat: first-class Deno installs #146

merged 3 commits into from
Jul 18, 2022

Conversation

guybedford
Copy link
Member

This adds support for first-class Deno installs via the recently-added Deno provider.

Specifically:

  • generator.install('deno:path') corresponds to a stdlib install and will populate a versioned stdlib mapping for path to the Deno standard librariy.
  • generator.install('denoland:oak') corresponds to a third-party Deno.land install and will populate the mapping similarly.

In addition a new defaultRegistry option is added as well as the ability for the providers object to provide registry mappings.

defaultRegistry applies the default registry for generator.install('x') to default to generator.install('registry:x') with the default obviously being npm:.

providers having custom registry: entries allows custom registry provider mappings via new Generator({ providers: { 'npm:': 'unpkg', 'denoland:': 'custom' } }) sort of thing ensuring this all is consistent with the provider and registry separation model.

@guybedford guybedford merged commit 8f89dc8 into main Jul 18, 2022
@guybedford guybedford deleted the deno branch July 18, 2022 06:04
@fusionstrings
Copy link

Love this, many thanks 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants