[go: nahoru, domu]

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(npm): add support for --reload=npm: and --reload=npm:<package> #15972

Merged
merged 7 commits into from
Sep 22, 2022

Conversation

bartlomieju
Copy link
Member
@bartlomieju bartlomieju commented Sep 20, 2022

Adds support for npm packages in --reload flag.

It causes the registry info and tarball to be downloaded again.

  • "--reload=npm:" - reloads all npm packages
  • "--reload=npm:" - reloads only ""

@bartlomieju bartlomieju mentioned this pull request Sep 20, 2022
25 tasks
Copy link
Member
@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

Nice! LGTM

let stdout = String::from_utf8_lossy(&output.stdout);
assert_contains!(stderr, "Download");
assert_contains!(stdout, "createChalk: chalk");
assert!(output.status.success());
Copy link
Member

Choose a reason for hiding this comment

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

We need to create a less verbose api for doing this kind of testing in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree, I'll see how many tests could use a helper

@dsherret dsherret merged commit 9a21680 into denoland:main Sep 22, 2022
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.

None yet

2 participants