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: add deno as package manager #25

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

bartlomieju
Copy link
Contributor

Description

Add Deno as a valid package manager recognized by package-manager-detector.

Linked Issues

Closes #21

Additional context

As of Deno v2.0.5, Deno will provide npm_config_user_agent env var in relevant subcommands (denoland/deno#26639).

Comment on lines +64 to +65
'upgrade': ['deno', 'update', 0],
'upgrade-interactive': ['deno', 'update', 0],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually not true yet, we plan to add these commands in Deno v2.1 later in November.

test/__snapshots__/detect-sync.spec.ts.snap Outdated Show resolved Hide resolved
test/__snapshots__/detect.spec.ts.snap Outdated Show resolved Hide resolved
@benmccann benmccann merged commit aa946f3 into antfu-collective:main Nov 14, 2024
2 checks passed
@bartlomieju bartlomieju deleted the add_deno branch November 14, 2024 16:30
'upgrade': ['deno', 'update', 0],
'upgrade-interactive': ['deno', 'update', 0],
'execute': ['deno', 'run', 0],
'execute-local': ['deno', 'run', 0],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the same command is used here for execute and execute-local, which means this isn't working in in the Svelte CLI: sveltejs/cli#313 (review). Does Deno have some equivalent to pnpm exec or should we make a feature request for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops, my bad. We currently have no way to do it, so a feature request would be helpful. I think we could handle that with deno task --eval so it uses cross-platform shell.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, filed a request here: denoland/deno#26918

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.

Add support for Deno as package manager
3 participants