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

Implements dlx #40

Merged
merged 8 commits into from
Mar 26, 2019
Merged

Implements dlx #40

merged 8 commits into from
Mar 26, 2019

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Mar 25, 2019

Implements yarn dlx (dlx for "download and execute"). This command is a bit like npx but is less jack-in-a-box. For example it won't ever run the local version of the package instead of the remote one, and won't run scripts (only binaries). Those two use cases are already solved by yarn run, so there's little point duplicating it here and would make the workflow more complex if our users started to use yarn dlx for all their command.

Other details:

  • Does cache the resolution, will always query the network to build a new dependency tree (for now)
  • Uses the global cache
  • Uses PnP, so linking is instant

Example:

$ yarn dlx gatsby new

Tests will be there before merging.

@thymikee
Copy link

This is quite what I wanted yarnpkg/rfcs#113 to transform into. Awesome! <3

Co-Authored-By: arcanis <[email protected]>
Copy link

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Maël Nison added 2 commits March 26, 2019 11:29
Commit generated via `yarn stage`
@arcanis arcanis merged commit 48961fa into yarnpkg:master Mar 26, 2019
@arcanis arcanis deleted the plugin-dlx branch March 26, 2019 20:56
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